aboutsummaryrefslogtreecommitdiffstats
path: root/tests/projects/plugins/project/test/js/PersonTest.js
diff options
context:
space:
mode:
Diffstat (limited to 'tests/projects/plugins/project/test/js/PersonTest.js')
-rw-r--r--tests/projects/plugins/project/test/js/PersonTest.js13
1 files changed, 13 insertions, 0 deletions
diff --git a/tests/projects/plugins/project/test/js/PersonTest.js b/tests/projects/plugins/project/test/js/PersonTest.js
new file mode 100644
index 00000000000..36b8fb05af5
--- /dev/null
+++ b/tests/projects/plugins/project/test/js/PersonTest.js
@@ -0,0 +1,13 @@
+TestCase('PersonTest', {
+
+ testWhoAreYou : function() {
+ var p = new Person('John', 'Doe', 'P.');
+ assertEquals('Should have responded with full name', 'John P. Doe', p.whoAreYou());
+ },
+
+ testWhoAreYouWithNoMiddleName : function() {
+ var p = new Person('John', 'Doe');
+ assertEquals('Should have used only first and last name', 'John Doe', p.whoAreYou());
+ }
+
+}); \ No newline at end of file