These are chat archives for dmitriz/q

29th
Feb 2016
Spencer Gardner
@freedomflyer
Feb 29 2016 23:07
Quick question about promise resolution
I'm running through several expect()'s in a test suite. All of them are retrieving promises and when they're resolved checking against an expected value
This message was deleted
This message was deleted
expect(exploreView.numMeasures()).toBe(2);
exploreView.numNoDataCharts().then((result) => {
     expect(result.indexOf(true)).toBeLessThan(0);
 });
What happens if the second expect modifies the state of the application in a way that the first expect depends on? How can I be sure that they won't conflict?