//arrghghh new TWEEN.Tween({x: 0, y: 0}) .to({x: 50, y: 50}, 2000) .easing( TWEEN.Easing.Elastic.Out ) .onUpdate(function(){ _this.marker.scale.set(this.x, this.y); }) .delay((this.previous ? _this.opts.drawTime : 0)) .start();
function unboxValue (msg) { const plaintext = ssbKeys.unbox(msg.content, api.keys.sync.load()) if (!plaintext) return null return { previous: msg.previous, author: msg.author, sequence: msg.sequence, timestamp: msg.timestamp, hash: msg.hash, content: plaintext, private: true } }
describe( 'reducer', () => { it( 'should set the current and the initial route to the value of the path attribute of the ROUTE_SET action', () => { const state = path( undefined, { type: ROUTE_SET, path: '/themes', } ); expect( state.initial ).to.equal( '/themes' ); expect( state.current ).to.equal( '/themes' ); expect( state.previous ).to.equal( '' ); } ); it( 'should set the previous and the current route to the value of the path attribute of the previous ROUTE_SET action', () => { const state = path( undefined, { type: ROUTE_SET, path: '/themes', } ); const nextState = path( state, { type: ROUTE_SET, path: '/plugins', } ); expect( nextState.previous ).to.equal( '/themes' ); expect( nextState.current ).to.equal( '/plugins' ); } ); } );
t.deepEqual(path, last.path); t.deepEqual(value, last.value); t.deepEqual(previous, last.previous); t.is(name, last.name);
expect( state.current.retry ).to.equal( 1 ); expect( state.current.lang ).to.equal( 'fr' ); expect( state.previous ).to.equal( false ); } ); expect( state.current.retry ).to.equal( 2 ); expect( state.current.lang ).to.equal( undefined ); expect( state.previous.retry ).to.equal( 1 ); expect( state.previous.lang ).to.equal( 'fr' ); } ); } );
t.strictEqual(req.previous, undefined) req.previous = 1 done() t.strictEqual(request.previous, 5) reply.send({ hello: 'world' }) }) t.strictEqual(req.previous, 1) req.previous = 2 done() t.strictEqual(req.previous, 2) req.previous = 3 done() t.strictEqual(req.previous, 3) req.previous = 4 done() t.strictEqual(req.previous, 4) req.previous = 5 done()
// afterCreate afterUpdate(inst) { const oldCollectorName = inst.previous('currentCollector') ? inst.previous('currentCollector').name : null; const newCollectorName = inst.currentCollector ? inst.currentCollector.name : null; return hbUtils.trackGeneratorChanges( inst, oldCollectorName, newCollectorName ); }
function _previous (input, channel) { if (channel.name !== adminChannel) { return } sonos.previous(function (err, previous) { logger.error(err + ' ' + previous) }) }
it('should replace a node if the capacity is 1', function () { const lru = new LRU(1); lru.set(1, 1); lru.set(2, 2); const { head } = lru; expect(head.data).to.equal(2); expect(head.previous).to.equal(null); expect(head.next).to.equal(null); expect(lru.get(1)).to.equal(undefined); expect(lru.get(2)).to.equal(2); });
program .command('back') .alias('b') .description('Play the previous track') .action(() => { spotifyClient.previous().then(() => { spotifyClient.status().then((result) => { printer.printPrevious(result); }); }); });
_getProcessedData(withSkip) { this.next = {}; const processed = this.processData(this._compileRawData(withSkip), this.previous, this.next); this.previous = this.next; return processed; }
//arrghghh new TWEEN.Tween({x: 0, y: 0}) .to({x: 50, y: 50}, 2000) .easing( TWEEN.Easing.Elastic.Out ) .onUpdate(function(){ _this.marker.scale.set(this.x, this.y); }) .delay((this.previous ? _this.opts.drawTime : 0)) .start();
t.strictEqual(request.previous, undefined) request.previous = 1 done() t.strictEqual(request.previous, 1) request.previous = 2 done() t.strictEqual(request.previous, 2) request.previous = 3 done() t.strictEqual(request.previous, 3) request.previous = 4 done() t.strictEqual(request.previous, 4) done(null, '5') })
t.strictEqual(request.previous, undefined) request.previous = 1 done() t.strictEqual(request.previous, 5) reply.send({ hello: 'world' }) }) t.strictEqual(request.previous, 1) request.previous = 2 done() t.strictEqual(request.previous, 2) request.previous = 3 done() t.strictEqual(request.previous, 3) request.previous = 4 done() t.strictEqual(request.previous, 4) request.previous = 5 done()