mirror of
https://github.com/Athou/commafeed.git
synced 2026-03-21 21:37:29 +00:00
jasmine tests setup
This commit is contained in:
15
pom.xml
15
pom.xml
@@ -136,6 +136,21 @@
|
|||||||
</execution>
|
</execution>
|
||||||
</executions>
|
</executions>
|
||||||
</plugin>
|
</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>
|
</plugins>
|
||||||
</build>
|
</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