Skip to content
This repository has been archived by the owner on Sep 12, 2023. It is now read-only.

Commit

Permalink
unit(validator): remove dependency to manager based constraints
Browse files Browse the repository at this point in the history
  • Loading branch information
KennethTrecy committed Sep 16, 2022
1 parent f3e5e4b commit c698af4
Showing 1 changed file with 0 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ import type { Request } from "!/types/dependent"

import "~/set-ups/database.set_up"
import Factory from "~/factories/role"
import Manager from "%/managers/role"
import UserFactory from "~/factories/user"
import makeInitialState from "!/validators/make_initial_state"
import IsTheOnlyRoleToAnyUser from "./is_the_only_role_to_any_user"
Expand All @@ -14,10 +13,6 @@ describe("Validator: Is the only role to any user", () => {
const value = Promise.resolve(makeInitialState(model.id))
const constraints = {
"field": "hello",
"manager": {
"className": Manager,
"columnName": "id"
},
"request": {} as Request,
"source": null
}
Expand All @@ -34,10 +29,6 @@ describe("Validator: Is the only role to any user", () => {
const value = Promise.resolve(makeInitialState(model.id))
const constraints = {
"field": "hello",
"manager": {
"className": Manager,
"columnName": "id"
},
"request": {} as Request,
"source": null
}
Expand Down

0 comments on commit c698af4

Please sign in to comment.