зеркало из https://github.com/Azure/ms-rest-js.git
Fix tests
This commit is contained in:
Родитель
d22849a6fd
Коммит
d3d1e89a2b
|
@ -229,7 +229,10 @@ export function stringifyXML(obj: any, opts?: { rootName?: string }) {
|
|||
const builder = new xml2js.Builder({
|
||||
explicitArray: false,
|
||||
explicitCharkey: false,
|
||||
rootName: (opts || {}).rootName
|
||||
rootName: (opts || {}).rootName,
|
||||
renderOpts: {
|
||||
pretty: false
|
||||
}
|
||||
});
|
||||
return builder.buildObject(obj);
|
||||
}
|
||||
|
|
|
@ -267,7 +267,7 @@ describe("ServiceClient", function () {
|
|||
});
|
||||
assert.strictEqual(
|
||||
httpRequest.body,
|
||||
`<?xml version="1.0" encoding="UTF-8" standalone="yes"?>\n<bodyArg>body value</bodyArg>`);
|
||||
`<?xml version="1.0" encoding="UTF-8" standalone="yes"?><bodyArg>body value</bodyArg>`);
|
||||
});
|
||||
|
||||
it("should serialize an XML ByteArray request body", () => {
|
||||
|
@ -297,7 +297,7 @@ describe("ServiceClient", function () {
|
|||
});
|
||||
assert.strictEqual(
|
||||
httpRequest.body,
|
||||
`<?xml version="1.0" encoding="UTF-8" standalone="yes"?>\n<bodyArg>SmF2YXNjcmlwdA==</bodyArg>`);
|
||||
`<?xml version="1.0" encoding="UTF-8" standalone="yes"?><bodyArg>SmF2YXNjcmlwdA==</bodyArg>`);
|
||||
});
|
||||
|
||||
it("should serialize an XML Stream request body", () => {
|
||||
|
|
Загрузка…
Ссылка в новой задаче