@flipdish/authorization 0.2.16-rc.1766090486 → 0.2.18-rc.1766096288
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/README.md +2 -2
- package/api.ts +309 -1573
- package/configuration.ts +1 -1
- package/dist/api.d.ts +306 -1614
- package/dist/api.js +200 -1445
- package/dist/configuration.js +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -215,7 +215,7 @@ describe("Authorization Tests", () => {
|
|
|
215
215
|
roles: ["Admin"],
|
|
216
216
|
});
|
|
217
217
|
expect(isInRoleResponse.status).toBe(200);
|
|
218
|
-
expect(isInRoleResponse.data.authorized).toBe(
|
|
218
|
+
expect(isInRoleResponse.data.authorized).toBe(true);
|
|
219
219
|
});
|
|
220
220
|
|
|
221
221
|
it("should authenticate and check if a user is in a role with a valid Bearer token", async () => {
|
|
@@ -227,7 +227,7 @@ describe("Authorization Tests", () => {
|
|
|
227
227
|
roles: ["Admin"],
|
|
228
228
|
});
|
|
229
229
|
expect(isInRoleResponse.status).toBe(200);
|
|
230
|
-
expect(isInRoleResponse.data.authorized).toBe(
|
|
230
|
+
expect(isInRoleResponse.data.authorized).toBe(true);
|
|
231
231
|
});
|
|
232
232
|
});
|
|
233
233
|
});
|