Skip to content

Commit

Permalink
test(ls): update tests
Browse files Browse the repository at this point in the history
  • Loading branch information
trs committed Nov 23, 2017
1 parent a336951 commit 812ccf0
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions test/commands/ls.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ describe('ls', function () {

beforeEach(() => {
sandbox = sinon.sandbox.create();

sandbox.stub(storage, 'getCurrentUser').returns(null);
});
afterEach(() => {
sandbox.restore();
Expand All @@ -23,10 +25,12 @@ describe('ls', function () {
const mappedUsers = ls._mapUserTokens(users);
expect(mappedUsers).to.eql([{
name: 'test',
token: '123'
token: '123',
current: ''
}, {
name: 'other',
token: '...34567890'
token: '...34567890',
current: ''
}]);
});
});
Expand Down

0 comments on commit 812ccf0

Please sign in to comment.