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

Commit

Permalink
types(front-end): specify the relationships that must be included
Browse files Browse the repository at this point in the history
  • Loading branch information
KennethTrecy committed Sep 15, 2022
1 parent f5bed10 commit 198e704
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 15 deletions.
12 changes: 6 additions & 6 deletions components/resource_management/resource_manager.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,15 +32,15 @@ describe("UI Component: Resource Manager", () => {
const sampleUserList = await listUsers()

const wrapper = mount(ResourceManager as object, {
"shallow": true,
"props": {
"resource": sampleUserList
},
"global": {
"provide": {
"managerKind": new Manager(user as DeserializedUserProfile)
"managerKind": new Manager(user as DeserializedUserProfile<"roles"|"department">)
}
}
},
"props": {
"resource": sampleUserList
},
"shallow": true,
})

const filters = wrapper.find(".filters")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,15 +32,15 @@ describe("UI Component: Dropdown Filter", () => {
.deserializedOne()

const wrapper = mount(DropdownFilter, {
"shallow": true,
"props": {
"by": "Role"
},
"global": {
"provide": {
"managerKind": new Manager(user as DeserializedUserProfile)
"managerKind": new Manager(user as DeserializedUserProfile<"roles"|"department">)
}
}
},
"props": {
"by": "Role"
},
"shallow": true
})

// Await for roles to be rendered
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,12 +30,12 @@ describe("Component: Resource List", () => {
const wrapper = mount(ResourceList, {
"global": {
"provide": {
"managerKind": new Manager(user as DeserializedUserProfile)
"managerKind": new Manager(user as DeserializedUserProfile<"roles"|"department">)
}
},
"props": {
"searchFilter": "",
"filteredList": sampleUserList.data
"filteredList": sampleUserList.data,
"searchFilter": ""
}
})

Expand Down

0 comments on commit 198e704

Please sign in to comment.