Skip to content

Commit a18d54f

Browse files
authored
Merge pull request #57 from CxRes/CxRes-fix-patch-code
Allow server to send 201 on PATCH create
2 parents 312494c + 9d3723a commit a18d54f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/surface/create.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -386,7 +386,7 @@ describe('Create', () => {
386386
"<#patch> a solid:InsertDeletePatch;\n" +
387387
" solid:inserts { <#hello> <#linked> <#world> .}.\n",
388388
});
389-
expect(result.status).toEqual(200);
389+
expect(responseCodeGroup(result.status)).toEqual('2xx');
390390
});
391391
392392
it(`is disallowed without Write or Append on c/`, async () => {
@@ -625,7 +625,7 @@ describe('Create', () => {
625625
"<#patch> a solid:InsertDeletePatch;\n" +
626626
" solid:inserts { <#hello> <#linked> <#world> .}.\n",
627627
});
628-
expect(result.status).toEqual(200);
628+
expect(responseCodeGroup(result.status)).toEqual('2xx');
629629
});
630630
631631
it(`is allowed with Append on c/`, async () => {

0 commit comments

Comments
 (0)