Skip to content

Commit 5955e68

Browse files
authored
Merge pull request #153 from gregolsky/v4.0
unskip remaining patch test
2 parents 72497db + cdb4ad5 commit 5955e68

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

test/Ported/FirstClassPatchTest.ts

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ describe("FirstClassPatchTest", function () {
6464
}
6565
});
6666

67-
it.skip("can patch and modify", async () => {
67+
it("can patch and modify", async () => {
6868
const user = new User();
6969
user.numbers = [66];
7070

@@ -84,7 +84,10 @@ describe("FirstClassPatchTest", function () {
8484
await session.saveChanges();
8585
assert.fail("it should have thrown");
8686
} catch (err) {
87-
assert.strictEqual(err.name, "IllegalStateException");
87+
assert.strictEqual(err.message,
88+
// tslint:disable-next-line:max-line-length
89+
"Cannot perform save because document users/1-A has been modified by the session and is also taking part in deferred PATCH command");
90+
assert.strictEqual(err.name, "InvalidOperationException");
8891
}
8992
}
9093
});

0 commit comments

Comments
 (0)