@roc-db/test-utils 0.2.0-pre.35 → 0.2.0-pre.36
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +4 -0
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -680,6 +680,10 @@ var testAdapterImplementation = async (adapterConstructor, generateArgs) => {
|
|
|
680
680
|
expect2(res.length).toBeGreaterThan(0);
|
|
681
681
|
expect2(res.every((m) => m.changeSetRef === draftRef)).toBeTrue();
|
|
682
682
|
});
|
|
683
|
+
test("invalid changeSetRef throws error", async () => {
|
|
684
|
+
const changeSetAdapter2 = adapter1.changeSet("Draft/123");
|
|
685
|
+
expect2(() => changeSetAdapter2.createPost({ title: "Title 1" })).toThrow(BadRequestError);
|
|
686
|
+
});
|
|
683
687
|
test("applyDraft", async () => {
|
|
684
688
|
const { draftRef: draftRef2 } = await prepareChangeSetTest(adapter1);
|
|
685
689
|
const [version, mutation] = await adapter1.applyDraft({
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@roc-db/test-utils",
|
|
3
|
-
"version": "0.2.0-pre.
|
|
3
|
+
"version": "0.2.0-pre.36",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"exports": {
|
|
6
6
|
".": {
|
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
],
|
|
18
18
|
"sideEffects": false,
|
|
19
19
|
"peerDependencies": {
|
|
20
|
-
"roc-db": "0.2.0-pre.
|
|
20
|
+
"roc-db": "0.2.0-pre.36",
|
|
21
21
|
"zod": "3.24.2"
|
|
22
22
|
},
|
|
23
23
|
"keywords": [],
|