diff --git a/core-js/pom.xml b/core-js/pom.xml index b1c70bec..f36da552 100644 --- a/core-js/pom.xml +++ b/core-js/pom.xml @@ -40,6 +40,24 @@ maven-release-plugin 2.5 + + com.github.searls + jasmine-maven-plugin + 1.3.1.5 + + + + test + + + + + + + Functions.js + + + net.alchim31.maven diff --git a/core-js/src/test/javascript/testSuite.js b/core-js/src/test/javascript/testSuite.js new file mode 100644 index 00000000..760d0aab --- /dev/null +++ b/core-js/src/test/javascript/testSuite.js @@ -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); + }); +}); diff --git a/pom.xml b/pom.xml index ad2b5716..4652c8c4 100644 --- a/pom.xml +++ b/pom.xml @@ -93,7 +93,7 @@ com.github.searls jasmine-maven-plugin - 1.3.1.4 + 1.3.1.5