Browse Source

convert to vitest

Yuki Takei 2 years ago
parent
commit
ec720bc116
1 changed files with 6 additions and 3 deletions
  1. 6 3
      apps/app/src/utils/page-delete-config.test.ts

+ 6 - 3
apps/app/test/unit/utils/page-delete-config.test.ts → apps/app/src/utils/page-delete-config.test.ts

@@ -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;