@better-auth/test-utils 1.7.0-rc.3 → 1.7.0-rc.5
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.
|
@@ -230,7 +230,7 @@ const createTestSuite = (suiteName, config, tests) => {
|
|
|
230
230
|
createdAt: randomDate,
|
|
231
231
|
updatedAt: /* @__PURE__ */ new Date(),
|
|
232
232
|
issuer: createLocalAccountIssuer("test"),
|
|
233
|
-
|
|
233
|
+
accountId: generateId(),
|
|
234
234
|
providerId: "test",
|
|
235
235
|
userId: generateId(),
|
|
236
236
|
accessToken: generateId(),
|
|
@@ -57,7 +57,7 @@ const getNormalTestSuiteTests = ({ adapter, generate, insertRandom, modifyBetter
|
|
|
57
57
|
userId: firstUser.id,
|
|
58
58
|
providerId: "issuer-key-first-alias",
|
|
59
59
|
issuer: "https://issuer-key.example.com",
|
|
60
|
-
|
|
60
|
+
accountId: "shared-subject"
|
|
61
61
|
};
|
|
62
62
|
await adapter.create({
|
|
63
63
|
model: "account",
|
|
@@ -71,7 +71,7 @@ const getNormalTestSuiteTests = ({ adapter, generate, insertRandom, modifyBetter
|
|
|
71
71
|
userId: secondUser.id,
|
|
72
72
|
providerId: "issuer-key-second-alias",
|
|
73
73
|
issuer: firstAccount.issuer,
|
|
74
|
-
|
|
74
|
+
accountId: firstAccount.accountId
|
|
75
75
|
},
|
|
76
76
|
forceAllowId: true
|
|
77
77
|
})).rejects.toThrow();
|
|
@@ -82,12 +82,12 @@ const getNormalTestSuiteTests = ({ adapter, generate, insertRandom, modifyBetter
|
|
|
82
82
|
userId: secondUser.id,
|
|
83
83
|
providerId: "issuer-key-other-issuer",
|
|
84
84
|
issuer: "https://other-issuer-key.example.com",
|
|
85
|
-
|
|
85
|
+
accountId: firstAccount.accountId
|
|
86
86
|
},
|
|
87
87
|
forceAllowId: true
|
|
88
88
|
})).resolves.toMatchObject({
|
|
89
89
|
issuer: "https://other-issuer-key.example.com",
|
|
90
|
-
|
|
90
|
+
accountId: "shared-subject"
|
|
91
91
|
});
|
|
92
92
|
},
|
|
93
93
|
"create - should use generateId if provided": async () => {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@better-auth/test-utils",
|
|
3
|
-
"version": "1.7.0-rc.
|
|
3
|
+
"version": "1.7.0-rc.5",
|
|
4
4
|
"description": "Testing utilities for Better Auth adapter development",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "MIT",
|
|
@@ -37,14 +37,14 @@
|
|
|
37
37
|
},
|
|
38
38
|
"devDependencies": {
|
|
39
39
|
"tsdown": "0.22.7",
|
|
40
|
-
"vitest": "^4.1.
|
|
41
|
-
"@better-auth/core": "1.7.0-rc.
|
|
42
|
-
"better-auth": "1.7.0-rc.
|
|
40
|
+
"vitest": "^4.1.10",
|
|
41
|
+
"@better-auth/core": "1.7.0-rc.5",
|
|
42
|
+
"better-auth": "1.7.0-rc.5"
|
|
43
43
|
},
|
|
44
44
|
"peerDependencies": {
|
|
45
|
-
"vitest": "^4.1.
|
|
46
|
-
"
|
|
47
|
-
"better-auth": "^1.7.0-rc.
|
|
45
|
+
"vitest": "^4.1.10",
|
|
46
|
+
"better-auth": "^1.7.0-rc.5",
|
|
47
|
+
"@better-auth/core": "^1.7.0-rc.5"
|
|
48
48
|
},
|
|
49
49
|
"scripts": {
|
|
50
50
|
"build": "tsdown",
|