Skip to content

Commit 02f7bac

Browse files
committed
add first real test
1 parent 17c4b0e commit 02f7bac

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

test/unit/simulate.js

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
11
module( "all" );
22

3-
test( "first test", function() {
3+
test( "keyboard events", function() {
44
expect( 1 );
5-
6-
ok( true, "testing works" );
5+
jQuery("<div></div>")
6+
.appendTo("#qunit-fixture")
7+
.simulate("keydown", { keyCode: jQuery.simulate.keyCode.PAGE_UP });
8+
ok( true, "key events do not throw an error" );
79
});

0 commit comments

Comments
 (0)