|
@@ -1,8 +1,11 @@
|
|
|
-import { PageDeleteConfigValue } from '../../../src/interfaces/page-delete-config';
|
|
|
|
|
-import { validateDeleteConfigs } from '../../../src/utils/page-delete-config';
|
|
|
|
|
|
|
+import { describe, test } from 'vitest';
|
|
|
|
|
+
|
|
|
|
|
+import { PageDeleteConfigValue } from '../interfaces/page-delete-config';
|
|
|
|
|
+
|
|
|
|
|
+import { validateDeleteConfigs } from './page-delete-config';
|
|
|
|
|
|
|
|
describe('validateDeleteConfigs utility function', () => {
|
|
describe('validateDeleteConfigs utility function', () => {
|
|
|
- test('Should validate delete configs', () => {
|
|
|
|
|
|
|
+ test('Should validate delete configs', ({ expect }) => {
|
|
|
const Anyone = PageDeleteConfigValue.Anyone;
|
|
const Anyone = PageDeleteConfigValue.Anyone;
|
|
|
const AdminAndAuthor = PageDeleteConfigValue.AdminAndAuthor;
|
|
const AdminAndAuthor = PageDeleteConfigValue.AdminAndAuthor;
|
|
|
const AdminOnly = PageDeleteConfigValue.AdminOnly;
|
|
const AdminOnly = PageDeleteConfigValue.AdminOnly;
|