adding jasmine configuration and suite to core-js module

This commit is contained in:
Ezequiel Bergamaschi 2014-09-26 23:22:37 -03:00
parent 3026504110
commit 4987f1030d
3 changed files with 29 additions and 1 deletions

View File

@ -40,6 +40,24 @@
<artifactId>maven-release-plugin</artifactId> <artifactId>maven-release-plugin</artifactId>
<version>2.5</version> <version>2.5</version>
</plugin> </plugin>
<plugin>
<groupId>com.github.searls</groupId>
<artifactId>jasmine-maven-plugin</artifactId>
<version>1.3.1.5</version>
<executions>
<execution>
<goals>
<goal>test</goal>
</goals>
</execution>
</executions>
<configuration>
<!-- configuration properties will go here -->
<sourceIncludes>
<include>Functions.js</include>
</sourceIncludes>
</configuration>
</plugin>
<plugin> <plugin>
<groupId>net.alchim31.maven</groupId> <groupId>net.alchim31.maven</groupId>

View 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);
});
});

View File

@ -93,7 +93,7 @@
<plugin> <plugin>
<groupId>com.github.searls</groupId> <groupId>com.github.searls</groupId>
<artifactId>jasmine-maven-plugin</artifactId> <artifactId>jasmine-maven-plugin</artifactId>
<version>1.3.1.4</version> <version>1.3.1.5</version>
</plugin> </plugin>
</plugins> </plugins>
</pluginManagement> </pluginManagement>