mirror of
https://github.com/github/codeql.git
synced 2025-12-17 17:23:36 +01:00
31 lines
528 B
JavaScript
31 lines
528 B
JavaScript
// a QUnit test
|
|
QUnit.test( "hello test", function( assert ) {
|
|
assert.ok( 1 == "1", "Passed!" );
|
|
});
|
|
|
|
// a Jasmine test
|
|
describe("A suite", function() {
|
|
it("contains spec with an expectation", function() {
|
|
expect(true).toBe(true);
|
|
});
|
|
});
|
|
|
|
// recognised as test due to customisations
|
|
mytest("A custom test", function(assert) {
|
|
assert.ok(true);
|
|
});
|
|
|
|
// not tests
|
|
it();
|
|
it("hi");
|
|
it("hi", 23);
|
|
|
|
// tape test
|
|
require("tape").test()
|
|
|
|
// AVA test
|
|
require("ava").test()
|
|
|
|
// cucumber test
|
|
require("cucumber")(function(){})
|