aboutsummaryrefslogtreecommitdiffstats
path: root/tests/unit/menu/menu_test_helpers.js
diff options
context:
space:
mode:
Diffstat (limited to 'tests/unit/menu/menu_test_helpers.js')
-rw-r--r--tests/unit/menu/menu_test_helpers.js9
1 files changed, 6 insertions, 3 deletions
diff --git a/tests/unit/menu/menu_test_helpers.js b/tests/unit/menu/menu_test_helpers.js
index bfed14d74..445663985 100644
--- a/tests/unit/menu/menu_test_helpers.js
+++ b/tests/unit/menu/menu_test_helpers.js
@@ -1,9 +1,12 @@
-define( function() {
+define( [
+ "jquery",
+ "lib/helper"
+], function( $, helper ) {
var lastItem,
log = [];
-return {
+return $.extend( helper, {
log: function( message, clear ) {
if ( clear ) {
log.length = 0;
@@ -28,6 +31,6 @@ return {
.children( ".ui-menu-item-wrapper" )
.trigger( "click" );
}
-};
+} );
} );