jasmine tests setup

This commit is contained in:
Athou
2013-04-12 15:40:55 +02:00
parent 9f830e0d21
commit 6e446fe55c
2 changed files with 30 additions and 0 deletions

15
pom.xml
View File

@@ -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>

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