diff options
Diffstat (limited to 'test/static/replaceSpec.js')
-rw-r--r-- | test/static/replaceSpec.js | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/test/static/replaceSpec.js b/test/static/replaceSpec.js new file mode 100644 index 0000000..4339ff2 --- /dev/null +++ b/test/static/replaceSpec.js @@ -0,0 +1,11 @@ +describe("Awesomplete.REPLACE", function () { + + subject(function () { return Awesomplete.REPLACE }); + + def("instance", function() { return { input: { value: "initial" } } }); + + it("replaces input value", function () { + this.subject.call(this.instance, "JavaScript"); + expect(this.instance.input.value).toBe("JavaScript"); + }); +}); |