From 434aa8343fdcbb4d5002f934979913c099489bee Mon Sep 17 00:00:00 2001 From: altaf-creator Date: Sun, 16 Nov 2025 19:08:29 +0800 Subject: sdk, del --- .../node_modules/@protobufjs/path/tests/index.js | 60 ---------------------- 1 file changed, 60 deletions(-) delete mode 100644 frontend-old/node_modules/@protobufjs/path/tests/index.js (limited to 'frontend-old/node_modules/@protobufjs/path/tests') diff --git a/frontend-old/node_modules/@protobufjs/path/tests/index.js b/frontend-old/node_modules/@protobufjs/path/tests/index.js deleted file mode 100644 index 927736e..0000000 --- a/frontend-old/node_modules/@protobufjs/path/tests/index.js +++ /dev/null @@ -1,60 +0,0 @@ -var tape = require("tape"); - -var path = require(".."); - -tape.test("path", function(test) { - - test.ok(path.isAbsolute("X:\\some\\path\\file.js"), "should identify absolute windows paths"); - test.ok(path.isAbsolute("/some/path/file.js"), "should identify absolute unix paths"); - - test.notOk(path.isAbsolute("some\\path\\file.js"), "should identify relative windows paths"); - test.notOk(path.isAbsolute("some/path/file.js"), "should identify relative unix paths"); - - var paths = [ - { - actual: "X:\\some\\..\\.\\path\\\\file.js", - normal: "X:/path/file.js", - resolve: { - origin: "X:/path/origin.js", - expected: "X:/path/file.js" - } - }, { - actual: "some\\..\\.\\path\\\\file.js", - normal: "path/file.js", - resolve: { - origin: "X:/path/origin.js", - expected: "X:/path/path/file.js" - } - }, { - actual: "/some/.././path//file.js", - normal: "/path/file.js", - resolve: { - origin: "/path/origin.js", - expected: "/path/file.js" - } - }, { - actual: "some/.././path//file.js", - normal: "path/file.js", - resolve: { - origin: "", - expected: "path/file.js" - } - }, { - actual: ".././path//file.js", - normal: "../path/file.js" - }, { - actual: "/.././path//file.js", - normal: "/path/file.js" - } - ]; - - paths.forEach(function(p) { - test.equal(path.normalize(p.actual), p.normal, "should normalize " + p.actual); - if (p.resolve) { - test.equal(path.resolve(p.resolve.origin, p.actual), p.resolve.expected, "should resolve " + p.actual); - test.equal(path.resolve(p.resolve.origin, p.normal, true), p.resolve.expected, "should resolve " + p.normal + " (already normalized)"); - } - }); - - test.end(); -}); -- cgit v1.2.3