Skip to content

Commit d73706c

Browse files
test: fix snapshots and test
1 parent 7dfccfd commit d73706c

File tree

7 files changed

+10
-10
lines changed

7 files changed

+10
-10
lines changed

apps/meteor/client/views/admin/ABAC/__snapshots__/AdminABACRoomAttributesForm.spec.tsx.snap renamed to apps/meteor/client/views/admin/ABAC/ABACAttributesTab/__snapshots__/AttributesForm.spec.tsx.snap

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// Jest Snapshot v1, https://jestjs.io/docs/snapshot-testing
22

3-
exports[`AdminABACRoomAttributesForm renders NewAttribute without crashing 1`] = `
3+
exports[`AttributesForm renders NewAttribute without crashing 1`] = `
44
<body>
55
<div>
66
<div
@@ -173,7 +173,7 @@ exports[`AdminABACRoomAttributesForm renders NewAttribute without crashing 1`] =
173173
</body>
174174
`;
175175

176-
exports[`AdminABACRoomAttributesForm renders WithLockedAttributes without crashing 1`] = `
176+
exports[`AttributesForm renders WithLockedAttributes without crashing 1`] = `
177177
<body>
178178
<div>
179179
<div

apps/meteor/client/views/admin/ABAC/ABACRoomsTab/RoomFormAttributeField.spec.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ const mockAttribute3 = {
2424
values: ['US', 'EU', 'APAC'],
2525
};
2626

27-
jest.mock('./hooks/useAttributeList', () => ({
27+
jest.mock('../hooks/useAttributeList', () => ({
2828
useAttributeList: jest.fn(() => ({
2929
data: [mockAttribute1, mockAttribute2, mockAttribute3],
3030
fetchNextPage: jest.fn(),

apps/meteor/client/views/admin/ABAC/__snapshots__/ABACDeleteRoomModal.spec.tsx.snap renamed to apps/meteor/client/views/admin/ABAC/ABACRoomsTab/__snapshots__/DeleteRoomModal.spec.tsx.snap

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// Jest Snapshot v1, https://jestjs.io/docs/snapshot-testing
22

3-
exports[`ABACDeleteRoomModal should render without crashing 1`] = `
3+
exports[`DeleteRoomModal should render without crashing 1`] = `
44
<body>
55
<div>
66
<dialog

apps/meteor/client/views/admin/ABAC/__snapshots__/ABACAttributeField.spec.tsx.snap renamed to apps/meteor/client/views/admin/ABAC/ABACRoomsTab/__snapshots__/RoomFormAttributeField.spec.tsx.snap

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// Jest Snapshot v1, https://jestjs.io/docs/snapshot-testing
22

3-
exports[`ABACAttributeField renders Default without crashing 1`] = `
3+
exports[`RoomFormAttributeField renders Default without crashing 1`] = `
44
<body>
55
<div>
66
<div

apps/meteor/client/views/admin/ABAC/__snapshots__/ABACRoomAutocomplete.spec.tsx.snap renamed to apps/meteor/client/views/admin/ABAC/ABACRoomsTab/__snapshots__/RoomFormAutocomplete.spec.tsx.snap

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// Jest Snapshot v1, https://jestjs.io/docs/snapshot-testing
22

3-
exports[`ABACRoomAutocomplete renders Default without crashing 1`] = `
3+
exports[`RoomFormAutocomplete renders Default without crashing 1`] = `
44
<body>
55
<div>
66
<div

apps/meteor/client/views/admin/ABAC/__snapshots__/AdminABACSettingToggle.spec.tsx.snap renamed to apps/meteor/client/views/admin/ABAC/ABACSettingTab/__snapshots__/SettingToggle.spec.tsx.snap

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// Jest Snapshot v1, https://jestjs.io/docs/snapshot-testing
22

3-
exports[`AdminABACSettingToggle should be disabled when abac license is not installed 1`] = `
3+
exports[`SettingToggle should be disabled when abac license is not installed 1`] = `
44
<body>
55
<div>
66
<div
@@ -68,7 +68,7 @@ exports[`AdminABACSettingToggle should be disabled when abac license is not inst
6868
</body>
6969
`;
7070

71-
exports[`AdminABACSettingToggle should render the setting toggle when setting exists 1`] = `
71+
exports[`SettingToggle should render the setting toggle when setting exists 1`] = `
7272
<body>
7373
<div>
7474
<div
@@ -135,7 +135,7 @@ exports[`AdminABACSettingToggle should render the setting toggle when setting ex
135135
</body>
136136
`;
137137

138-
exports[`AdminABACSettingToggle should show skeleton when loading 1`] = `
138+
exports[`SettingToggle should show skeleton when loading 1`] = `
139139
<body>
140140
<div>
141141
<div

apps/meteor/client/views/admin/ABAC/hooks/useAttributeOptions.spec.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ const mockSetModal = jest.fn();
99
const mockDispatchToastMessage = jest.fn();
1010
const useIsABACAvailableMock = jest.fn(() => true);
1111

12-
jest.mock('./hooks/useIsABACAvailable', () => ({
12+
jest.mock('./useIsABACAvailable', () => ({
1313
useIsABACAvailable: () => useIsABACAvailableMock(),
1414
}));
1515

0 commit comments

Comments
 (0)