Skip to content

Commit

Permalink
Refactor tests to not assume name of project folder
Browse files Browse the repository at this point in the history
Closes GH-25.

Reviewed-by: Titus Wormer <tituswormer@gmail.com>
  • Loading branch information
kapouer authored Mar 12, 2024
1 parent f331312 commit 66b952b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions test/core.js
Original file line number Diff line number Diff line change
Expand Up @@ -116,19 +116,19 @@ test(

assert.equal(
resolve('..', import.meta.url),
pathToFileURL('../import-meta-resolve/').href,
pathToFileURL('./').href,
'should resolve a directory (1)'
)

assert.equal(
resolve('../lib', import.meta.url),
pathToFileURL('../import-meta-resolve/lib').href,
pathToFileURL('./lib').href,
'should resolve a directory (2)'
)

assert.equal(
resolve('../lib/', import.meta.url),
pathToFileURL('../import-meta-resolve/lib/').href,
pathToFileURL('./lib/').href,
'should resolve a directory (3)'
)

Expand Down

0 comments on commit 66b952b

Please sign in to comment.