forked from Archives/Athou_commafeed
jasmine tests setup
This commit is contained in:
15
pom.xml
15
pom.xml
@@ -136,6 +136,21 @@
|
||||
</execution>
|
||||
</executions>
|
||||
</plugin>
|
||||
<plugin>
|
||||
<groupId>com.github.searls</groupId>
|
||||
<artifactId>jasmine-maven-plugin</artifactId>
|
||||
<version>1.3.1.0</version>
|
||||
<executions>
|
||||
<execution>
|
||||
<goals>
|
||||
<goal>test</goal>
|
||||
</goals>
|
||||
</execution>
|
||||
</executions>
|
||||
<configuration>
|
||||
<jsTestSrcDir>${project.basedir}/src/test/javascript/specs</jsTestSrcDir>
|
||||
</configuration>
|
||||
</plugin>
|
||||
</plugins>
|
||||
</build>
|
||||
|
||||
|
||||
15
src/test/javascript/specs/test.js
Normal file
15
src/test/javascript/specs/test.js
Normal file
@@ -0,0 +1,15 @@
|
||||
describe("A suite", function() {
|
||||
it("contains spec with an expectation", function() {
|
||||
expect(true).toBe(true);
|
||||
});
|
||||
});
|
||||
|
||||
describe("A suite is just a function", function() {
|
||||
var a;
|
||||
|
||||
it("and so is a spec", function() {
|
||||
a = true;
|
||||
|
||||
expect(a).toBe(true);
|
||||
});
|
||||
});
|
||||
Reference in New Issue
Block a user