Skip to content

Commit

Permalink
chore: remove promise callbacks
Browse files Browse the repository at this point in the history
  • Loading branch information
frshwtr committed Dec 19, 2023
1 parent 4d68a3f commit ffcb03a
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions tools/create-component/__tests__/cli-integration.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ describe('CLI integration tests', () => {
brands: ['core'],
};

it('CLI with all properties', async done => {
it('CLI with all properties', async () => {
const responds = {
...testDefaults,
name: 'o Test name',
Expand All @@ -41,15 +41,15 @@ describe('CLI integration tests', () => {
expect(result.stdout.includes(expectedStdOutJavascript)).toBeTruthy();
expect(result.stdout.includes(expectedStdOutScss)).toBeTruthy();
});
cli.end(done);
cli.end();
await copyTemplates(
{...responds, name: sanitizeName(responds.name)},
tempDir.cwd()
);
checkFiles(tempDir.cwd());
});

it('without javascript', async done => {
it('without javascript', async () => {
const jsFilesToExclude = [
'demos/src/demo.js',
'src/js/test-name.js',
Expand All @@ -72,14 +72,14 @@ describe('CLI integration tests', () => {
expect(result.stdout.includes(expectedStdOutJavascript)).toBeTruthy();
expect(result.stdout.includes(expectedStdOutScss)).toBeTruthy();
});
cli.end(done);
cli.end();
await copyTemplates(
{...responds, name: sanitizeName(responds.name)},
tempDir.cwd()
);
checkFiles(tempDir.cwd(), jsFilesToExclude);
});
it('without sass', async done => {
it('without sass', async () => {
const sassFilesToExclude = [
'demos/src/demo.scss',
'stories/test-name.scss',
Expand All @@ -104,7 +104,7 @@ describe('CLI integration tests', () => {
expect(result.stdout.includes(expectedStdOutJavascript)).toBeTruthy();
expect(result.stdout.includes(expectedStdOutScss)).toBeTruthy();
});
cli.end(done);
cli.end();
await copyTemplates(
{...responds, name: sanitizeName(responds.name)},
tempDir.cwd()
Expand Down

0 comments on commit ffcb03a

Please sign in to comment.