Skip to content

Commit

Permalink
Consistent comparison test functions
Browse files Browse the repository at this point in the history
  • Loading branch information
zachleat committed Jul 23, 2024
1 parent 2650cb4 commit 1b7c43a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 8 deletions.
2 changes: 1 addition & 1 deletion pug/test/test-plugin-data-functions.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import {strict as assert, strictEqual as equal} from 'node:assert'
import {strictEqual as equal} from 'node:assert'
import path from 'node:path'
import {
describe,
Expand Down
11 changes: 4 additions & 7 deletions pug/test/test-plugin-minimal-setup.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
import {strict as assert, strictEqual as equal} from 'node:assert'
import fs from 'node:fs'
import {strictEqual as equal} from 'node:assert'
import path from 'node:path'
import {
after,
before,
describe,
describe as context,
it
Expand All @@ -27,12 +24,12 @@ describe('Pug: Minimal possible setup', function() {
const config = new UserConfig()

it('it starts with no plugins', function() {
assert.equal(config.plugins.length, 0)
equal(config.plugins.length, 0)
})

it('runs .addPlugin() successfully', function() {
config.addPlugin(plugin)
assert.equal(config.plugins.length, 1)
equal(config.plugins.length, 1)
})
})

Expand All @@ -58,5 +55,5 @@ describe('Pug: Minimal possible setup', function() {
})
})

describe.todo('SCENARIO: Multiple layouts', function() {})
describe.todo('Pug: Multiple layouts', function() {})

0 comments on commit 1b7c43a

Please sign in to comment.