fix(SW-1710): use access object references instead
correct incorrect test that granted access incorrectly
This commit is contained in:
@@ -3,6 +3,7 @@ import { describe, expect, it } from "@jest/globals"
|
||||
import accessBooking, {
|
||||
ACCESS_GRANTED,
|
||||
ERROR_BAD_REQUEST,
|
||||
ERROR_FORBIDDEN,
|
||||
ERROR_NOT_FOUND,
|
||||
ERROR_UNAUTHORIZED,
|
||||
} from "./accessBooking"
|
||||
@@ -42,7 +43,7 @@ describe("Access booking", () => {
|
||||
email: "logged-out@scandichotels.com",
|
||||
}).toString()
|
||||
expect(accessBooking(loggedOut, "Booking", user, cookieString)).toBe(
|
||||
ACCESS_GRANTED
|
||||
ERROR_FORBIDDEN
|
||||
)
|
||||
})
|
||||
it("should prompt for more if first name is missing", () => {
|
||||
|
||||
Reference in New Issue
Block a user