forked from abalone0204/Clairvoyance
-
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.
feat(action): changeUserIdentity(anonymous or not)
- Loading branch information
1 parent
1a8b50f
commit 92659e1
Showing
3 changed files
with
48 additions
and
2 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 |
---|---|---|
@@ -0,0 +1,7 @@ | ||
export const CHANGE_USER_IDENTITY = 'CHANGE_USER_IDENTITY' | ||
|
||
export function changeUserIdentity() { | ||
return { | ||
type: CHANGE_USER_IDENTITY | ||
} | ||
} |
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,17 @@ | ||
import { | ||
assert | ||
} from 'chai' | ||
import { | ||
CHANGE_USER_IDENTITY, | ||
changeUserIdentity | ||
} from 'actions/changeUserIdentity.js' | ||
|
||
describe('Actions/ changeUserIdentity', function () { | ||
it('should return action of changeUserIdentity', () => { | ||
const expected = { | ||
type: CHANGE_USER_IDENTITY | ||
} | ||
const actual = changeUserIdentity() | ||
assert.deepEqual(expected, actual) | ||
}) | ||
}); |
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