Skip to content

Commit 3036171

Browse files
author
Arpith Siromoney
committed
Remove hash and score tests from feedUtils.test.js
These tests are now in articleUtils.test.js where they belong. Removes duplicate testing of hash() and score() functions.
1 parent 3b77192 commit 3036171

File tree

1 file changed

+0
-18
lines changed

1 file changed

+0
-18
lines changed

src/lib/feedUtils.test.js

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -30,24 +30,6 @@ function test(name, fn) {
3030
// Run all tests
3131
console.log('\n=== Testing Feed Utility Functions ===\n');
3232

33-
// Test hash function
34-
testCases.hash_function_tests.forEach((testCase) => {
35-
test(testCase.description, () => {
36-
const result = hash(testCase.input);
37-
assert.strictEqual(result, testCase.expected,
38-
`Hash mismatch: got ${result}, expected ${testCase.expected}`);
39-
});
40-
});
41-
42-
// Test score function
43-
testCases.score_function_tests.forEach((testCase) => {
44-
test(testCase.description, () => {
45-
const result = score(testCase.input);
46-
assert.strictEqual(result, testCase.expected,
47-
`Score mismatch: got ${result}, expected ${testCase.expected}`);
48-
});
49-
});
50-
5133
// Test buildRequestHeaders
5234
testCases.request_headers_tests.forEach((testCase) => {
5335
test(testCase.description, () => {

0 commit comments

Comments
 (0)