summaryrefslogtreecommitdiffstats
path: root/test/static/replaceSpec.js
blob: e2eddbaecf98a6ff2e3338a1c688c6b4125e5b5f (plain)
1
2
3
4
5
6
7
8
9
10
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, { value: "JavaScript" });
		expect(this.instance.input.value).toBe("JavaScript");
	});
});