diff options
author | Giovane <giovaneliberato@gmail.com> | 2015-09-14 14:44:47 -0300 |
---|---|---|
committer | Giovane <giovaneliberato@gmail.com> | 2015-09-14 15:55:37 -0300 |
commit | 424f135cf1c777399ff6659b7e5ba1d1f37593ea (patch) | |
tree | fc27aa6eb8a3513f7f7f84b2ccc727a6d820ecf3 /web-ui/test/spec | |
parent | b4bc06226f7b64a928d54483b77707022f068235 (diff) |
#442 trigger open event when click on feedback link.
Diffstat (limited to 'web-ui/test/spec')
-rw-r--r-- | web-ui/test/spec/page/feedback.spec.js | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/web-ui/test/spec/page/feedback.spec.js b/web-ui/test/spec/page/feedback.spec.js index e69de29b..1435a4b8 100644 --- a/web-ui/test/spec/page/feedback.spec.js +++ b/web-ui/test/spec/page/feedback.spec.js @@ -0,0 +1,17 @@ +describeComponent('page/feedback', function () { + 'use strict'; + + describe('feedback link', function () { + + it('should trigger ui:feedback:open event on click', function () { + + this.setupComponent('<nav id="feedback"></nav>', {}); + var spy = spyOnEvent(document, Pixelated.events.ui.feedback.open); + + this.$node.find('a').click(); + expect(spy).toHaveBeenTriggeredOn(document); + }); + + }); +}); + |