mirror of
https://github.com/sudoxnym/habitica.git
synced 2026-05-22 05:38:46 +00:00
client: test: getters
This commit is contained in:
parent
046761b9aa
commit
3e6691dbbb
1 changed files with 13 additions and 0 deletions
13
test/client/unit/specs/getters/userGems.spec.js
Normal file
13
test/client/unit/specs/getters/userGems.spec.js
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
import { userGems } from 'client/store/getters';
|
||||
|
||||
describe('userGems getter', () => {
|
||||
it('returns the user\'s gems', () => {
|
||||
expect(userGems({
|
||||
state: {
|
||||
user: {
|
||||
balance: 4.5,
|
||||
},
|
||||
},
|
||||
})).to.equal(18);
|
||||
});
|
||||
});
|
||||
Loading…
Reference in a new issue