mirror of
https://github.com/PR0M3TH3AN/TORCH.git
synced 2026-11-01 02:11:54 +00:00
fix(test): replace undefined assert.notMatch with assert.doesNotMatch
`assert.notMatch` is not a valid function in Node.js `node:assert` module. The correct function is `assert.doesNotMatch`. This caused `test/install_dir_validation.test.mjs` to fail. This commit replaces the incorrect usage to fix the test failure. Co-authored-by: PR0M3TH3AN <[email protected]>
This commit is contained in:
1 parent
41a94b2716
commit
99bf7fa452
1 file changed
+3
-3
@@ -91,7 +91,7 @@ test('cmdInit should validate install directory name', async (t) => {
|
||||
relays: []
|
||||
});
|
||||
} catch (e) {
|
||||
assert.notMatch(e.message, /Invalid directory name/);
|
||||
assert.doesNotMatch(e.message, /Invalid directory name/);
|
||||
}
|
||||
});
|
||||
});
|
||||
@@ -105,7 +105,7 @@ test('cmdInit should validate install directory name', async (t) => {
|
||||
relays: []
|
||||
});
|
||||
} catch (e) {
|
||||
assert.notMatch(e.message, /Invalid directory name/);
|
||||
assert.doesNotMatch(e.message, /Invalid directory name/);
|
||||
}
|
||||
});
|
||||
});
|
||||
@@ -119,7 +119,7 @@ test('cmdInit should validate install directory name', async (t) => {
|
||||
relays: []
|
||||
});
|
||||
} catch (e) {
|
||||
assert.notMatch(e.message, /Invalid directory name/);
|
||||
assert.doesNotMatch(e.message, /Invalid directory name/);
|
||||
}
|
||||
});
|
||||
});
|
||||
|
||||
Reference in new issue
Block a user