|
@@ -52,7 +52,7 @@ function timeoutAsync(cb, delay) {
|
|
|
.then(() => timeoutAsync(() => {
|
|
.then(() => timeoutAsync(() => {
|
|
|
assert.equal( $mainMenu.width(), 0, "2.AFTER 2ND CLICK width should be 0" );
|
|
assert.equal( $mainMenu.width(), 0, "2.AFTER 2ND CLICK width should be 0" );
|
|
|
done();
|
|
done();
|
|
|
- }, 160));
|
|
|
|
|
|
|
+ }, 180));
|
|
|
});
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
@@ -83,8 +83,13 @@ function timeoutAsync(cb, delay) {
|
|
|
|
|
|
|
|
|
|
|
|
|
QUnit.test( "test nav back to home", function( assert ) {
|
|
QUnit.test( "test nav back to home", function( assert ) {
|
|
|
|
|
+ var done = assert.async();
|
|
|
$homeLink.trigger('click');
|
|
$homeLink.trigger('click');
|
|
|
assert.ok( window.location.pathname, '/', "location should be / when clicking app title" );
|
|
assert.ok( window.location.pathname, '/', "location should be / when clicking app title" );
|
|
|
|
|
+ timeoutAsync(() => {
|
|
|
|
|
+ assert.equal( ($menuExample.find('a')).length, 0, "menu example should contain 0 entry" );
|
|
|
|
|
+ done();
|
|
|
|
|
+ }, 50);
|
|
|
});
|
|
});
|
|
|
|
|
|
|
|
|
|
|