adding jasmine configuration and suite to core-js module
This commit is contained in:
10
core-js/src/test/javascript/testSuite.js
Normal file
10
core-js/src/test/javascript/testSuite.js
Normal file
@@ -0,0 +1,10 @@
|
||||
describe("Functions suite test", function() {
|
||||
it("$defined() test spec", function() {
|
||||
var testVariable = undefined;
|
||||
expect($defined(testVariable)).toBe(false);
|
||||
testVariable = 1;
|
||||
expect($defined(testVariable)).toBe(true);
|
||||
testVariable = null;
|
||||
expect($defined(testVariable)).toBe(false);
|
||||
});
|
||||
});
|
Reference in New Issue
Block a user