Skip to content
This repository has been archived by the owner on Sep 28, 2020. It is now read-only.

Commit

Permalink
Add test for intitialize event
Browse files Browse the repository at this point in the history
  • Loading branch information
ragulka committed Mar 6, 2014
1 parent 3450e7b commit 7690cee
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion test/test.tokenfield.integration.js
Original file line number Diff line number Diff line change
Expand Up @@ -875,7 +875,17 @@ describe('Integration', function() {
});
});

describe("Events", function() {
describe.only("Events", function() {

describe("tokenfield:initialize", function() {
it("must must be triggered when tokenfield is created", function (done) {
$('<input type="text" />')
.on('tokenfield:initialize', function() {
done();
})
.tokenfield();
});
});

describe("tokenfield:preparetoken", function() {
it("must allow changing token field and value", function() {
Expand Down

0 comments on commit 7690cee

Please sign in to comment.