mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-18 15:17:25 +01:00
client: test: getters
This commit is contained in:
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);
|
||||||
|
});
|
||||||
|
});
|
||||||
Reference in New Issue
Block a user