mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-18 15:17:25 +01:00
Fix test
This commit is contained in:
@@ -26,14 +26,14 @@ describe('user.ops', function() {
|
|||||||
describe('readCard', function() {
|
describe('readCard', function() {
|
||||||
it('removes card from invitation array', function() {
|
it('removes card from invitation array', function() {
|
||||||
user.items.special.valentineReceived = ['Leslie'];
|
user.items.special.valentineReceived = ['Leslie'];
|
||||||
user.ops.readCard('valentine');
|
user.ops.readCard({ params: { cardType: 'valentine' } });
|
||||||
|
|
||||||
expect(user.items.special.valentineReceived).to.be.empty;
|
expect(user.items.special.valentineReceived).to.be.empty;
|
||||||
});
|
});
|
||||||
|
|
||||||
it('removes the first card from invitation array', function() {
|
it('removes the first card from invitation array', function() {
|
||||||
user.items.special.valentineReceived = ['Leslie', 'Vicky'];
|
user.items.special.valentineReceived = ['Leslie', 'Vicky'];
|
||||||
user.ops.readCard('valentine');
|
user.ops.readCard({ params: { cardType: 'valentine' } });
|
||||||
|
|
||||||
expect(user.items.special.valentineReceived).to.eql(['Vicky']);
|
expect(user.items.special.valentineReceived).to.eql(['Vicky']);
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user