Skip to content

Commit

Permalink
fix: update parse-glob tests to use the same framework as the other t…
Browse files Browse the repository at this point in the history
…ests
  • Loading branch information
joeyparrish committed Mar 15, 2022
1 parent 1c3a7e8 commit bed4e53
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions test/cli/parse-glob.spec.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
const expect = require('expect.js')
const { parseGlob } = require('../../dist/cli/parse-glob.js')
const parseGlobPkg = require('parse-glob')

Expand All @@ -21,10 +20,10 @@ describe('parseGlob', () => {
for (const glob of testGlobs) {
const result = parseGlob(glob)
const pkgResult = parseGlobPkg(glob)
expect(result.base).to.equal(pkgResult.base)
expect(result.glob).to.equal(pkgResult.glob)
expect(result.is.glob).to.equal(pkgResult.is.glob)
expect(result.path.basename).to.equal(pkgResult.path.basename)
expect(result.base).toEqual(pkgResult.base)
expect(result.glob).toEqual(pkgResult.glob)
expect(result.is.glob).toEqual(pkgResult.is.glob)
expect(result.path.basename).toEqual(pkgResult.path.basename)
}
})
})

0 comments on commit bed4e53

Please sign in to comment.