Skip to content

Commit 63390c4

Browse files
committed
test: 💍 Fixed test in uniqueItems
1 parent 587c2f8 commit 63390c4

File tree

1 file changed

+16
-7
lines changed

1 file changed

+16
-7
lines changed

__tests__/cli/uniqby/index.test.ts

+16-7
Original file line numberDiff line numberDiff line change
@@ -40,12 +40,21 @@ const items = [
4040

4141
describe('uniqby', () => {
4242
test('Duplicate items are eliminated.', () => {
43-
expect(uniqueItems(items).at(-1)).toEqual({
44-
output: '/_next/static/chunks/images/default_3840_75.png',
45-
src: '/default.png',
46-
width: 3840,
47-
quality: 75,
48-
extension: 'png',
49-
})
43+
expect(uniqueItems(items)).toEqual([
44+
{
45+
extension: 'png',
46+
output: '/_next/static/chunks/images/default_1920_75.png',
47+
quality: 75,
48+
src: '/default.png',
49+
width: 1920,
50+
},
51+
{
52+
output: '/_next/static/chunks/images/default_3840_75.png',
53+
src: '/default.png',
54+
width: 3840,
55+
quality: 75,
56+
extension: 'png',
57+
},
58+
])
5059
})
5160
})

0 commit comments

Comments
 (0)