-
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.
Merge pull request #18 from KPMP/KPMP-1903_AddLinkToGlobus
KPMP-1903: Add link when in metadata recieved state and there is a gl…
- Loading branch information
Showing
3 changed files
with
163 additions
and
126 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,3 +6,4 @@ build/* | |
node_modules | ||
node_modules/* | ||
.project | ||
*.css |
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,20 @@ | ||
import { packages } from './packageReducer'; | ||
import actionNames from '../../actions/actionNames'; | ||
|
||
describe('packages', () => { | ||
|
||
it('should return the given state if not known action', () => { | ||
let action = { | ||
type: 'UNKNOWN' | ||
}; | ||
expect(packages([], action)).toEqual([]); | ||
}); | ||
|
||
it('should return the new state if known action', () => { | ||
let action = { | ||
type: actionNames.SET_PACKAGES, | ||
payload: 'new stuff' | ||
}; | ||
expect(packages([], action)).toEqual('new stuff'); | ||
}); | ||
}); |