DefinitelyTyped/types/quixote/quixote-tests.ts
Andrew Bradley 9ea8da2d0e Remove or fix dependencies on mocha by other declarations
If dependency is unnecessary, replaces with stub declarations
If dependency is necessary, declares a requirement on at least TS2.1 to match mocha's
2018-03-14 22:52:57 -04:00

39 lines
881 B
TypeScript

// Stub mocha functions
const {describe, it, before, after, beforeEach, afterEach} = null as any as {
[s: string]: ((s: string, cb: (done: any) => void) => void) & ((cb: (done: any) => void) => void) & {only: any, skip: any};
};
function test_createFrame() {
var frame: QFrame;
before((done) => {
var options = { src: "" };
frame = quixote.createFrame(options, done());
});
}
function test_resetFrame() {
var frame: QFrame;
before((done) => {
var options = { src: "" };
frame = quixote.createFrame(options, done());
});
beforeEach(() => {
frame.reset();
});
}
function test_removeFrame() {
var frame: QFrame;
before((done) => {
var options = { src: "" };
frame = quixote.createFrame(options, done());
});
after(function() {
frame.remove();
});
}