Skip to content

Commit 5c27035

Browse files
committed
chore: test list duplicates
1 parent 06b4077 commit 5c27035

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

src/properties.spec.ts

+12
Original file line numberDiff line numberDiff line change
@@ -234,6 +234,18 @@ describe('data access', () => {
234234

235235
expect(resultAsArrays).toEqual(samplePairs)
236236
})
237+
238+
it('should list duplicate pairs', () => {
239+
const config: properties.Properties = {
240+
lines: ['foo=bar1', 'foo=bar2']
241+
}
242+
243+
const result = [...properties.list(config)]
244+
expect(result).toEqual([
245+
{key: 'foo', value: 'bar1'},
246+
{key: 'foo', value: 'bar2'}
247+
])
248+
})
237249
})
238250

239251
describe('toObject', () => {

0 commit comments

Comments
 (0)