Skip to content

Commit

Permalink
[chore]: remove unuse code
Browse files Browse the repository at this point in the history
  • Loading branch information
hoangtran2506 committed Aug 18, 2023
1 parent 5454461 commit dbcd752
Showing 1 changed file with 0 additions and 19 deletions.
19 changes: 0 additions & 19 deletions src/commands/Initialize/test/appType.test.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import { describe, expect, test } from '@jest/globals';
import validator from '../validator';
import {
authCommandImplement,
createTemplateWithArgv,
Expand Down Expand Up @@ -33,24 +32,6 @@ const initializeTestProject = async (

describe('Initialize command', () => {
describe('Validator App Type', () => {
test('Should be "Invalid App Type" when setting quick option', async () => {
const argv = [
'node',
'dist',
'create-template',
'--quick',
'--app-name',
'test-app',
'--app-id',
'100'
];
await initializeTestProject(argv);
const params = { type: 'invalid type' };
const errorMessage = validator.appValidator(params) as string;

expect(errorMessage).toEqual('Invalid App Type');
});

test('Should use React template when the preset is set to React', async () => {
const argv = [
'node',
Expand Down

0 comments on commit dbcd752

Please sign in to comment.