summaryrefslogtreecommitdiff
path: root/web-ui/test/spec/feedback
diff options
context:
space:
mode:
Diffstat (limited to 'web-ui/test/spec/feedback')
-rw-r--r--web-ui/test/spec/feedback/feedback_cache.spec.js12
1 files changed, 12 insertions, 0 deletions
diff --git a/web-ui/test/spec/feedback/feedback_cache.spec.js b/web-ui/test/spec/feedback/feedback_cache.spec.js
new file mode 100644
index 00000000..f6738114
--- /dev/null
+++ b/web-ui/test/spec/feedback/feedback_cache.spec.js
@@ -0,0 +1,12 @@
+define(['feedback/feedback_cache'], function (feedbackCache) {
+ 'use strict';
+
+ describe('feedbackCache', function () {
+ it('should cache', function () {
+ feedbackCache.resetCache();
+ expect(feedbackCache.getCache()).toEqual('');
+ feedbackCache.setCache('foo bar');
+ expect(feedbackCache.getCache()).toEqual('foo bar');
+ });
+ });
+});