Commit 1dcfc13e authored by Andrew Fontaine's avatar Andrew Fontaine

Replace Usage of Jasmine with Expect for FF Specs

Replace `jasmine.any` with `expect.any` to use Jest's utility functions
instead.
parent 877d3be2
...@@ -169,7 +169,7 @@ describe('feature flag form', () => { ...@@ -169,7 +169,7 @@ describe('feature flag form', () => {
}); });
it('should not render deleted scopes', () => { it('should not render deleted scopes', () => {
expect(wrapper.vm.filteredScopes).toEqual([jasmine.objectContaining({ id: 2 })]); expect(wrapper.vm.filteredScopes).toEqual([expect.objectContaining({ id: 2 })]);
}); });
}); });
...@@ -329,7 +329,7 @@ describe('feature flag form', () => { ...@@ -329,7 +329,7 @@ describe('feature flag form', () => {
rolloutUserIds: '', rolloutUserIds: '',
}, },
{ {
id: jasmine.any(String), id: expect.any(String),
active: false, active: false,
environmentScope: 'review', environmentScope: 'review',
canUpdate: true, canUpdate: true,
...@@ -339,7 +339,7 @@ describe('feature flag form', () => { ...@@ -339,7 +339,7 @@ describe('feature flag form', () => {
rolloutUserIds: '', rolloutUserIds: '',
}, },
{ {
id: jasmine.any(String), id: expect.any(String),
active: true, active: true,
environmentScope: '', environmentScope: '',
canUpdate: true, canUpdate: true,
......
...@@ -61,7 +61,7 @@ describe('New feature flag form', () => { ...@@ -61,7 +61,7 @@ describe('New feature flag form', () => {
it('should render default * row', () => { it('should render default * row', () => {
expect(wrapper.vm.scopes).toEqual([ expect(wrapper.vm.scopes).toEqual([
{ {
id: jasmine.any(String), id: expect.any(String),
environmentScope: '*', environmentScope: '*',
active: true, active: true,
rolloutStrategy: ROLLOUT_STRATEGY_ALL_USERS, rolloutStrategy: ROLLOUT_STRATEGY_ALL_USERS,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment