-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
SHIBUI-1477 Fixed issue with old version of resolver displaying
- Loading branch information
Showing
6 changed files
with
55 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
import { getFilteredListFn } from './'; | ||
|
||
describe('Provider Reducer selectors', () => { | ||
describe(`getFilteredListFn method`, () => { | ||
it('should return a list without the provider`s property', () => { | ||
|
||
const fn = getFilteredListFn('name'); | ||
const name = 'foo'; | ||
const collection = ['foo', 'bar', 'baz']; | ||
const provider = { name }; | ||
|
||
expect(fn(collection, provider)).toEqual(['bar', 'baz']); | ||
}); | ||
|
||
it('should return the list if the provider passed is null', () => { | ||
|
||
const fn = getFilteredListFn('name'); | ||
const name = 'foo'; | ||
const collection = ['foo', 'bar', 'baz']; | ||
|
||
expect(fn(collection, null)).toEqual(['foo', 'bar', 'baz']); | ||
}); | ||
}); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters