-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore(test): migrate from tape to test_runner (#186)
- Loading branch information
Showing
3 changed files
with
39 additions
and
62 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,14 @@ | ||
// Import Third-party Dependencies | ||
import test from "tape"; | ||
// Import Node.js Dependencies | ||
import { test } from "node:test"; | ||
import assert from "node:assert"; | ||
|
||
// Import Internal Dependency | ||
import { getRepositoryPath } from "../src/utils.js"; | ||
|
||
test("getRepositoryPath must return id", (tape) => { | ||
tape.is(getRepositoryPath("10"), "10"); | ||
|
||
tape.end(); | ||
test("getRepositoryPath must return id", () => { | ||
assert.equal(getRepositoryPath("10"), "10"); | ||
}); | ||
|
||
test("getRepositoryPath must return gitlab path", (tape) => { | ||
tape.is(getRepositoryPath("nodesecure.boo"), "nodesecure%2Fboo"); | ||
|
||
tape.end(); | ||
test("getRepositoryPath must return gitlab path", () => { | ||
assert.equal(getRepositoryPath("nodesecure.boo"), "nodesecure%2Fboo"); | ||
}); |