@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 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(false);
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(false);
230
+ expect(isInRoleResponse.data.authorized).toBe(true);
231
231
  });
232
232
  });
233
233
  });