Skip to content

Commit

Permalink
Expand e2e
Browse files Browse the repository at this point in the history
  • Loading branch information
jacogr committed Oct 1, 2018
1 parent 876c34c commit 0802f89
Showing 1 changed file with 17 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,27 @@ describe.skip('e2e subscriptions', () => {
api.state
.storage([[storage.timestamp.now]])
.subscribe((data) => {
console.error('subscribe', data);
console.error('timestamp.now', data);

if (++count === 4) {
done();
}
});
});

it('retrieves multiple values', (done) => {
api.state
.storage([
[storage.timestamp.now],
[storage.session.sessionLength],
[storage.staking.sessionsPerEra]
])
.subscribe((data) => {
console.error('multiples', data);

if (data !== undefined && data.filter((item) => item).length === 3) {
done();
}
});
});
});

0 comments on commit 0802f89

Please sign in to comment.