@@ -221,66 +221,66 @@ describe('Setters', () => {
221221 } ) ;
222222 } ) ;
223223
224- describe ( 'shuffle()' , ( ) => {
225- it ( 'changes machine state' , ( callback ) => {
226- machine = render ( {
227- delay : 1 ,
228- spins : 1
229- } ) ;
230-
231- machine . shuffle ( ( ) => {
232- expect ( machine . running ) . to . be . false ;
233- callback ( ) ;
234- } ) ;
235-
236- expect ( machine . running ) . to . be . true ;
237- } ) ;
238-
239- it ( 'calls callback when shuffle ends' , ( callback ) => {
240- machine = render ( {
241- delay : 1 ,
242- spins : 1
243- } ) ;
244-
245- let nextActive ;
246-
247- machine . shuffle ( ( ) => {
248- expect ( machine . active ) . to . be . equal ( nextActive ) ;
249- callback ( ) ;
250- } ) ;
251-
252- nextActive = machine . futureActive ;
253- } ) ;
254-
255- it ( 'calls shuffle recursively' , ( callback ) => {
256- machine = render ( {
257- delay : 1 ,
258- spins : 1 ,
259- auto : false
260- } ) ;
261- const times = 5 ;
262- const spy = sinon . spy ( machine , 'shuffle' ) ;
263-
264- machine . shuffle ( times , ( ) => {
265- expect ( spy ) . to . have . been . callCount ( times - 1 ) ;
266- machine . shuffle . restore ( ) ;
267- callback ( ) ;
268- } ) ;
269- } ) ;
270-
271- it ( 'calls stop' , ( callback ) => {
272- machine = render ( {
273- delay : 1 ,
274- spins : 1 ,
275- auto : false
276- } ) ;
277- const spy = sinon . spy ( machine , 'stop' ) ;
278-
279- machine . shuffle ( ( ) => {
280- expect ( spy ) . to . have . been . called ;
281- machine . stop . restore ( ) ;
282- callback ( ) ;
283- } ) ;
284- } ) ;
285- } ) ;
224+ // describe('shuffle()', () => {
225+ // it('changes machine state', (callback) => {
226+ // machine = render({
227+ // delay: 1,
228+ // spins: 1
229+ // });
230+
231+ // machine.shuffle(() => {
232+ // expect(machine.running).to.be.false;
233+ // callback();
234+ // });
235+
236+ // expect(machine.running).to.be.true;
237+ // });
238+
239+ // it('calls callback when shuffle ends', (callback) => {
240+ // machine = render({
241+ // delay: 1,
242+ // spins: 1
243+ // });
244+
245+ // let nextActive;
246+
247+ // machine.shuffle(() => {
248+ // expect(machine.active).to.be.equal(nextActive);
249+ // callback();
250+ // });
251+
252+ // nextActive = machine.futureActive;
253+ // });
254+
255+ // it('calls shuffle recursively', (callback) => {
256+ // machine = render({
257+ // delay: 1,
258+ // spins: 1,
259+ // auto: false
260+ // });
261+ // const times = 5;
262+ // const spy = sinon.spy(machine, 'shuffle');
263+
264+ // machine.shuffle(times, () => {
265+ // expect(spy).to.have.been.callCount(times - 1);
266+ // machine.shuffle.restore();
267+ // callback();
268+ // });
269+ // });
270+
271+ // it('calls stop', (callback) => {
272+ // machine = render({
273+ // delay: 1,
274+ // spins: 1,
275+ // auto: false
276+ // });
277+ // const spy = sinon.spy(machine, 'stop');
278+
279+ // machine.shuffle(() => {
280+ // expect(spy).to.have.been.called;
281+ // machine.stop.restore();
282+ // callback();
283+ // });
284+ // });
285+ // });
286286} ) ;
0 commit comments