mirror of
https://github.com/sudoxnym/habitica.git
synced 2026-05-08 07:06:32 +00:00
Fix test
This commit is contained in:
parent
00a212660a
commit
4adc19caf0
1 changed files with 2 additions and 2 deletions
|
|
@ -26,14 +26,14 @@ describe('user.ops', function() {
|
|||
describe('readCard', function() {
|
||||
it('removes card from invitation array', function() {
|
||||
user.items.special.valentineReceived = ['Leslie'];
|
||||
user.ops.readCard('valentine');
|
||||
user.ops.readCard({ params: { cardType: 'valentine' } });
|
||||
|
||||
expect(user.items.special.valentineReceived).to.be.empty;
|
||||
});
|
||||
|
||||
it('removes the first card from invitation array', function() {
|
||||
user.items.special.valentineReceived = ['Leslie', 'Vicky'];
|
||||
user.ops.readCard('valentine');
|
||||
user.ops.readCard({ params: { cardType: 'valentine' } });
|
||||
|
||||
expect(user.items.special.valentineReceived).to.eql(['Vicky']);
|
||||
});
|
||||
|
|
|
|||
Loading…
Reference in a new issue