dat.gui/tests/test.js
George Michael Brower 9ab83a6fe3 cross browser woes
2014-09-02 12:00:08 -04:00

29 lines
467 B
JavaScript

describe('Gui', function() {
it( 'exists', function() {
expect( Gui ).toBeDefined();
});
it( 'has a ready callback', function() {
var ready = {
ready: function() {}
};
spyOn( ready, 'ready' );
runs( function() {
Gui.ready( ready.ready );
} );
waits( 10 );
runs( function() {
expect( ready.ready ).toHaveBeenCalled();
} );
} );
});