We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bd37724 commit 6879da0Copy full SHA for 6879da0
test/src/tests/XrmQuery/web/promise/promise.ts
@@ -78,4 +78,20 @@ class Web_Retrieve_Promise extends FakeRequests {
78
req.respond(200, { 'OData-EntityId': newAccountId }, "");
79
expect(result).to.eventually.equal(newAccountId);
80
}
81
+
82
+ @test
83
+ "No-Content response"() {
84
+ var result = XrmQuery.retrieveRelated(x => x.accounts, "0000-SOME-GUID", y => y.parentaccountid)
85
+ .select(x => [x.createdby_guid])
86
+ .promise();
87
88
+ // Check request
89
+ expect(this.requests.length).to.equal(1);
90
+ var req = this.requests[0];
91
92
+ // Respond and check that body is parsed correctly
93
+ req.respond(204, {}, "");
94
95
+ expect(result).to.eventually.deep.equal([]);
96
+ }
97
0 commit comments