update test

This commit is contained in:
Niels Lyngsø
2023-01-23 22:37:24 +01:00
parent 7f325b97d8
commit 40e6ad99c8

View File

@@ -1,6 +1,6 @@
import { expect } from '@open-wc/testing';
import { createObservablePart } from '@umbraco-cms/observable-api';
import { UniqueArrayBehaviorSubject } from './unique-array-behavior-subject';
import { createObservablePart } from '@umbraco-cms/observable-api';
describe('UniqueArrayBehaviorSubject', () => {
@@ -16,7 +16,7 @@ describe('UniqueArrayBehaviorSubject', () => {
{key: '2', another: 'myValue2'},
{key: '3', another: 'myValue3'}
];
subject = new UniqueArrayBehaviorSubject(initialData, (a, b) => a.key === b.key);
subject = new UniqueArrayBehaviorSubject(initialData, x => x.key);
});