Skip to content

Commit

Permalink
test: fix linting errors
Browse files Browse the repository at this point in the history
  • Loading branch information
cossssmin committed Feb 16, 2023
1 parent a054c08 commit b69362e
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion test/test-layout.js
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ test('it requires a file extension', async t => {

test('it does not overwrite existing files', async t => {
await execa.command(`node bin/maizzle make:layout layout.html -d ${t.context.folder}`)
const mtimeMs = fs.statSync(`${t.context.folder}/layout.html`).mtimeMs
const {mtimeMs} = fs.statSync(`${t.context.folder}/layout.html`)
await execa.command(`node bin/maizzle make:layout layout.html -d ${t.context.folder}`)

t.is(fs.statSync(`${t.context.folder}/layout.html`).mtimeMs, mtimeMs)
Expand Down
2 changes: 1 addition & 1 deletion test/test-tailwind.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ test('it requires a file extension', async t => {

test('it does not overwrite existing files', async t => {
await execa.command(`node bin/maizzle make:tailwind tailwind.config.js -d ${t.context.folder}`)
const mtimeMs = fs.statSync(`${t.context.folder}/tailwind.config.js`).mtimeMs
const {mtimeMs} = fs.statSync(`${t.context.folder}/tailwind.config.js`)
await execa.command(`node bin/maizzle make:tailwind tailwind.config.js -d ${t.context.folder}`)

t.is(fs.statSync(`${t.context.folder}/tailwind.config.js`).mtimeMs, mtimeMs)
Expand Down
2 changes: 1 addition & 1 deletion test/test-template.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ test('it requires a file extension', async t => {

test('it does not overwrite existing files', async t => {
await execa.command(`node bin/maizzle make:template template.html -d ${t.context.folder}`)
const mtimeMs = fs.statSync(`${t.context.folder}/template.html`).mtimeMs
const {mtimeMs} = fs.statSync(`${t.context.folder}/template.html`)
await execa.command(`node bin/maizzle make:template template.html -d ${t.context.folder}`)

t.is(fs.statSync(`${t.context.folder}/template.html`).mtimeMs, mtimeMs)
Expand Down

0 comments on commit b69362e

Please sign in to comment.