From 8e99073b382d2f8efa0aa8f276177e9d3fa07430 Mon Sep 17 00:00:00 2001 From: Dan Holmes Date: Fri, 4 Dec 2020 09:12:51 +0000 Subject: [PATCH] Add limitation --- js-jasmine/README.md | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/js-jasmine/README.md b/js-jasmine/README.md index 9420bd2a..2c171fe3 100644 --- a/js-jasmine/README.md +++ b/js-jasmine/README.md @@ -15,4 +15,7 @@ Take existing legacy code and add a new feature. ## Limitations -The test spec required that I did not alter the Item class. This made it more difficult to apply OOD principles. I have instead created a module for each item type, which still allows for encapsulation. \ No newline at end of file +The test spec required that I did not alter the Item class. This made it more difficult to apply OOD principles. I have instead created a module for each item type, which still allows for encapsulation. + +My tests verged on state driven rather than behaviour driven. I could not find an equivalent of RSpec's "change by" matcher for Jasmine. Any tips would be appreciated. +