From 6e446fe55c54fc25a913e1f673a40fe937ac2f8d Mon Sep 17 00:00:00 2001 From: Athou Date: Fri, 12 Apr 2013 15:40:55 +0200 Subject: [PATCH] jasmine tests setup --- pom.xml | 15 +++++++++++++++ src/test/javascript/specs/test.js | 15 +++++++++++++++ 2 files changed, 30 insertions(+) create mode 100644 src/test/javascript/specs/test.js diff --git a/pom.xml b/pom.xml index 4db521a4..ce4e702b 100644 --- a/pom.xml +++ b/pom.xml @@ -136,6 +136,21 @@ + + com.github.searls + jasmine-maven-plugin + 1.3.1.0 + + + + test + + + + + ${project.basedir}/src/test/javascript/specs + + diff --git a/src/test/javascript/specs/test.js b/src/test/javascript/specs/test.js new file mode 100644 index 00000000..2a86e183 --- /dev/null +++ b/src/test/javascript/specs/test.js @@ -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); + }); +}); \ No newline at end of file