mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/Popups
synced 2024-11-23 23:24:39 +00:00
Hygiene: Reduce nesting of test cases
The ABANDON_START action test cases were (accidentally?) nested under the FETCH_COMPLETE action test cases... Bug: T162373 Change-Id: Ia7866178162512602dedd7f70d62c17995ee5076
This commit is contained in:
parent
87be4be855
commit
91b1d5da42
|
@ -371,22 +371,22 @@ QUnit.test( 'FETCH_COMPLETE', function ( assert ) {
|
|||
state,
|
||||
'It should NOOP if the interaction has been finalised.'
|
||||
);
|
||||
} );
|
||||
|
||||
QUnit.test( 'ABANDON_START', function ( assert ) {
|
||||
var state = {
|
||||
interaction: {}
|
||||
};
|
||||
QUnit.test( 'ABANDON_START', function ( assert ) {
|
||||
var state = {
|
||||
interaction: {}
|
||||
};
|
||||
|
||||
state = eventLogging( state, {
|
||||
type: 'ABANDON_START',
|
||||
timestamp: Date.now()
|
||||
} );
|
||||
|
||||
assert.notOk(
|
||||
state.interaction.isUserDwelling,
|
||||
'It should mark the link or preview as having been abandoned.'
|
||||
);
|
||||
state = eventLogging( state, {
|
||||
type: 'ABANDON_START',
|
||||
timestamp: Date.now()
|
||||
} );
|
||||
|
||||
assert.notOk(
|
||||
state.interaction.isUserDwelling,
|
||||
'It should mark the link or preview as having been abandoned.'
|
||||
);
|
||||
} );
|
||||
|
||||
QUnit.test( 'ABANDON_END', function ( assert ) {
|
||||
|
|
Loading…
Reference in a new issue