Skip to content

Commit

Permalink
Merge pull request #57 from CxRes/CxRes-fix-patch-code
Browse files Browse the repository at this point in the history
Allow server to send 201 on PATCH create
  • Loading branch information
bourgeoa authored Aug 30, 2024
2 parents 312494c + 9d3723a commit a18d54f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/surface/create.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -386,7 +386,7 @@ describe('Create', () => {
"<#patch> a solid:InsertDeletePatch;\n" +
" solid:inserts { <#hello> <#linked> <#world> .}.\n",
});
expect(result.status).toEqual(200);
expect(responseCodeGroup(result.status)).toEqual('2xx');
});
it(`is disallowed without Write or Append on c/`, async () => {
Expand Down Expand Up @@ -625,7 +625,7 @@ describe('Create', () => {
"<#patch> a solid:InsertDeletePatch;\n" +
" solid:inserts { <#hello> <#linked> <#world> .}.\n",
});
expect(result.status).toEqual(200);
expect(responseCodeGroup(result.status)).toEqual('2xx');
});
it(`is allowed with Append on c/`, async () => {
Expand Down

0 comments on commit a18d54f

Please sign in to comment.