mirror of
https://github.com/fluencelabs/assemblyscript
synced 2025-06-15 16:01:30 +00:00
Clean up tests directory a bit
This commit is contained in:
12
tests/util-path.js
Normal file
12
tests/util-path.js
Normal file
@ -0,0 +1,12 @@
|
||||
const path = require("path");
|
||||
const assert = require("assert");
|
||||
|
||||
require("ts-node").register({ project: path.join(__dirname, "..", "src", "tsconfig.json") });
|
||||
require("../src/glue/js");
|
||||
|
||||
const { normalize, resolve } = require("../src/util/path");
|
||||
|
||||
var test = "./Y/./N/./N/../../././../Y/./.";
|
||||
assert.strictEqual(normalize(test), path.posix.normalize(test));
|
||||
|
||||
assert.strictEqual(resolve("../../..", "lib/util/i64.ts"), "..");
|
Reference in New Issue
Block a user