Skip to content

Commit d6cafc6

Browse files
committed
fixup: address review feedback
- Simplify enforceArray tests to two cases (array vs non-array) - Remove redundant multiple-substitutions test for populate
1 parent 7d0fcbb commit d6cafc6

File tree

2 files changed

+0
-17
lines changed

2 files changed

+0
-17
lines changed

src/utils/__tests__/array.test.mjs

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -13,17 +13,5 @@ describe('enforceArray', () => {
1313

1414
it('should wrap a non-array value in an array', () => {
1515
assert.deepStrictEqual(enforceArray('hello'), ['hello']);
16-
assert.deepStrictEqual(enforceArray(42), [42]);
17-
assert.deepStrictEqual(enforceArray(true), [true]);
18-
});
19-
20-
it('should wrap null and undefined in an array', () => {
21-
assert.deepStrictEqual(enforceArray(null), [null]);
22-
assert.deepStrictEqual(enforceArray(undefined), [undefined]);
23-
});
24-
25-
it('should return an empty array as-is', () => {
26-
const input = [];
27-
assert.strictEqual(enforceArray(input), input);
2816
});
2917
});

src/utils/configuration/__tests__/templates.test.mjs

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,4 @@ describe('populate', () => {
2323
const result = populate('{missing}', {});
2424
assert.strictEqual(result, '{missing}');
2525
});
26-
27-
it('should handle multiple substitutions in one template', () => {
28-
const result = populate('{a}-{b}-{c}', { a: '1', b: '2', c: '3' });
29-
assert.strictEqual(result, '1-2-3');
30-
});
3126
});

0 commit comments

Comments
 (0)