mirror of
https://github.com/sehugg/8bitworkshop.git
synced 2024-11-26 10:49:17 +00:00
27 lines
606 B
JavaScript
27 lines
606 B
JavaScript
|
|
function assert(b, msg) {
|
|
if (!b) { throw new Error(msg); }
|
|
}
|
|
|
|
describe('Test VCS emulator', function() {
|
|
var platform = new VCSPlatform();
|
|
it('Should start', function(done) {
|
|
platform.start();
|
|
assert(!platform.isRunning());
|
|
// TODO: more testing
|
|
done();
|
|
});
|
|
});
|
|
|
|
describe('Test Space Invaders emulator', function() {
|
|
var platform = new SpaceInvadersPlatform($('#emulator')[0]);
|
|
it('Should start', function(done) {
|
|
platform.start();
|
|
assert(!platform.isRunning());
|
|
platform.resume();
|
|
assert(platform.isRunning());
|
|
// TODO: more testing
|
|
done();
|
|
});
|
|
});
|