Skip to content

Commit 48ed675

Browse files
committed
test: fixup transition transform cases to use objectContaining
1 parent e39d447 commit 48ed675

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

test/jasmine/tests/transition_test.js

+4-4
Original file line numberDiff line numberDiff line change
@@ -75,13 +75,13 @@ function runTests(transitionDuration) {
7575
value: 10
7676
}
7777
}, [0]).then(function() {
78-
expect(gd._fullData[0].transforms).toEqual([{
78+
expect(gd._fullData[0].transforms).toEqual([jasmine.objectContaining({
7979
enabled: true,
8080
type: 'filter',
8181
operation: '<',
8282
target: 'x',
8383
value: 10
84-
}]);
84+
})]);
8585

8686
return Plots.transition(gd, [{
8787
'transforms[0].operation': '>'
@@ -90,13 +90,13 @@ function runTests(transitionDuration) {
9090
{duration: transitionDuration, easing: 'cubic-in-out'}
9191
);
9292
}).then(function() {
93-
expect(gd._fullData[0].transforms).toEqual([{
93+
expect(gd._fullData[0].transforms).toEqual([jasmine.objectContaining({
9494
enabled: true,
9595
type: 'filter',
9696
operation: '>',
9797
target: 'x',
9898
value: 10
99-
}]);
99+
})]);
100100
}).catch(fail).then(done);
101101
});
102102

0 commit comments

Comments
 (0)