Commit 4822e79d authored by Ryan Herbert's avatar Ryan Herbert

tokeniser_test.js add missing target input

tokeniser.createToken now takes a target_input parameter so we don't
need to use selectors inside the class for choosing where the data sent
via the form should be set.
parent 906da5c2
......@@ -12,8 +12,9 @@ QUnit.test("tokeniser", function(assert) {
assert.equal(token.innerText, "foobar", "check whether the token text is correct");
var mock_div = document.createElement('div');
var mock_target = document.createElement('input');
tokeniser.tokenise(mock_input, mock_div);
tokeniser.tokenise(mock_input, mock_div, mock_target);
assert.equal(mock_input.value, "", "check that input value is reset");
assert.equal($(mock_input).data('set-id'), undefined, "check that input data set-id is reset");
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment