Skip to content

Commit

Permalink
fix agent profile tests (#183)
Browse files Browse the repository at this point in the history
  • Loading branch information
CookieCookson authored Jul 3, 2021
1 parent 3688864 commit 43eb115
Showing 1 changed file with 12 additions and 9 deletions.
21 changes: 12 additions & 9 deletions src/XAPI.e2e.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -494,7 +494,7 @@ describe("agent profile resource", () => {
testProfileId,
testProfile,
result.headers.etag,
"If-None-Match"
"If-Match"
);
})
.then((result) => {
Expand All @@ -505,14 +505,17 @@ describe("agent profile resource", () => {
test("can set agent profile with text/plain content type", () => {
const testProfileId: string = `${testActivity.id}/profiles/test-text-plain`;
return xapi
.setAgentProfile(
testAgent,
testProfileId,
testProfile.test,
"*",
"If-None-Match",
"text/plain"
)
.deleteAgentProfile(testAgent, testProfileId)
.then(() => {
return xapi.setAgentProfile(
testAgent,
testProfileId,
testProfile.test,
"*",
"If-None-Match",
"text/plain"
);
})
.then((result) => {
return expect(result.data).toBeDefined();
});
Expand Down

0 comments on commit 43eb115

Please sign in to comment.