diff options
author | elioat <elioat@tilde.institute> | 2024-12-22 16:23:49 -0500 |
---|---|---|
committer | elioat <elioat@tilde.institute> | 2024-12-22 16:23:49 -0500 |
commit | be71ba06acd077052c2306748cb1f27800286a9e (patch) | |
tree | 0b5b03fb4ae5191284aff3cb204b457c409e446f /js/where/where.test.js | |
parent | 46f7e3f9357f94d7817498c657a8bcb4d191402f (diff) | |
download | tour-be71ba06acd077052c2306748cb1f27800286a9e.tar.gz |
*
Diffstat (limited to 'js/where/where.test.js')
-rw-r--r-- | js/where/where.test.js | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/js/where/where.test.js b/js/where/where.test.js index 43638d9..e674ca0 100644 --- a/js/where/where.test.js +++ b/js/where/where.test.js @@ -1,6 +1,3 @@ -/** - * Simple test runner for the where function - */ const test = { run(name, fn) { try { @@ -21,7 +18,6 @@ const test = { } }; -// Test Data const testData = [ { name: 'John', @@ -64,7 +60,6 @@ const testData = [ } ]; -// Basic Tests test.run('should handle empty inputs', () => { test.assertEquals(where([], {}), [], 'Empty array and empty object'); test.assertEquals(where(null, {}), [], 'Null collection'); @@ -126,7 +121,6 @@ test.run('should handle null values correctly', () => { test.assertEquals(result[0].name, 'Alice', 'Should find Alice'); }); -// Run in Node.js environment if (typeof module !== 'undefined' && module.exports) { module.exports = { test }; } |