Skip to content

Commit

Permalink
tests: fix
Browse files Browse the repository at this point in the history
  • Loading branch information
alexander-akait committed Jan 29, 2021
1 parent a0999c8 commit 2e5f241
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions test/watch/basic/basic.test.js
Expand Up @@ -71,7 +71,7 @@ describe('basic', () => {

if (!modified) {
process.nextTick(() => {
writeFileSync(resolve(__dirname, './src/index.js'), `console.log('watch flag test');`);
writeFileSync(resolve(__dirname, './src/index.js'), `console.log('watch flag test');\n`);
});

modified = true;
Expand Down Expand Up @@ -106,7 +106,7 @@ describe('basic', () => {

if (!modified) {
process.nextTick(() => {
writeFileSync(resolve(__dirname, './src/entry.js'), `console.log('watch flag test');`);
writeFileSync(resolve(__dirname, './src/entry.js'), `console.log('watch flag test');\n`);
});

modified = true;
Expand Down Expand Up @@ -140,7 +140,7 @@ describe('basic', () => {

if (!modified && !hasWarning) {
process.nextTick(() => {
writeFileSync(resolve(__dirname, './src/index.js'), `console.log('watch flag test');`);
writeFileSync(resolve(__dirname, './src/index.js'), `console.log('watch flag test');\n`);
});

modified = true;
Expand Down Expand Up @@ -182,7 +182,7 @@ describe('basic', () => {

if (!modified && !hasWarning) {
process.nextTick(() => {
writeFileSync(resolve(__dirname, './src/index.js'), `console.log('watch flag test');`);
writeFileSync(resolve(__dirname, './src/index.js'), `console.log('watch flag test');\n`);
});

modified = true;
Expand Down

0 comments on commit 2e5f241

Please sign in to comment.