mirror of
https://github.com/dataarts/dat.gui.git
synced 2024-12-12 04:08:27 +00:00
29 lines
467 B
JavaScript
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();
|
|
} );
|
|
|
|
} );
|
|
|
|
}); |