Procházet zdrojové kódy

test(dashboard): Fix failing tests

Michael Bromley před 9 měsíci
rodič
revize
fb7cebbc8b
1 změnil soubory, kde provedl 5 přidání a 5 odebrání
  1. 5 5
      packages/dashboard/vite/utils/ast-utils.spec.ts

+ 5 - 5
packages/dashboard/vite/utils/ast-utils.spec.ts

@@ -29,7 +29,7 @@ describe('getPluginInfo', () => {
         const result = getPluginInfo(sourceFile);
         expect(result).toEqual({
             name: 'TestPlugin',
-            path: 'path/to',
+            pluginPath: 'path/to',
             dashboardEntryPath: undefined,
         });
     });
@@ -56,7 +56,7 @@ describe('getPluginInfo', () => {
         const result = getPluginInfo(sourceFile);
         expect(result).toEqual({
             name: 'TestPlugin',
-            path: 'path/to',
+            pluginPath: 'path/to',
             dashboardEntryPath: undefined,
         });
     });
@@ -76,7 +76,7 @@ describe('getPluginInfo', () => {
         const result = getPluginInfo(sourceFile);
         expect(result).toEqual({
             name: 'TestPlugin',
-            path: 'path/to',
+            pluginPath: 'path/to',
             dashboardEntryPath: './dashboard/index.tsx',
         });
     });
@@ -97,7 +97,7 @@ describe('findConfigExport', () => {
     it('should find exported variable with VendureConfig type', () => {
         const sourceText = `
             import { VendureConfig } from '@vendure/core';
-            
+
             export const config: VendureConfig = {
                 authOptions: {
                     tokenMethod: 'bearer'
@@ -112,7 +112,7 @@ describe('findConfigExport', () => {
     it('should find exported variable with VendureConfig type among other exports', () => {
         const sourceText = `
             import { VendureConfig } from '@vendure/core';
-            
+
             export const otherExport = 'value';
             export const config: VendureConfig = {
                 authOptions: {