Skip to content

Commit

Permalink
Code style & new case
Browse files Browse the repository at this point in the history
  • Loading branch information
sculpt0r committed Jan 7, 2022
1 parent 3e2cc8b commit 920f22e
Showing 1 changed file with 14 additions and 7 deletions.
21 changes: 14 additions & 7 deletions tests/core/ckeditor/appendtimestamp.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,14 @@
'use strict';

bender.test( {
'test append timestamp returns the same resource path if there is no timestamp': performTimestampTest(
'',
'style.css',
'style.css',
'Resource path was modified without timestamp in CKEDITOR'
'test append timestamp returns the same resource path if there is no CKEDITOR.timestamp': performTimestampTest(
'',
'style.css',
'style.css',
'Resource path was modified without timestamp in CKEDITOR'
),

'test append timestamp returns resource path with timestamp': performTimestampTest(
'test append timestamp returns resource path with timestamp if there is CKEDITOR.timestamp': performTimestampTest(
'cke4',
'style.css',
'style.css?t=cke4',
Expand All @@ -25,7 +25,7 @@
'Resource path to directory should not be changed'
),

'test append timestamp to resource path with only timestamp does not change it': performTimestampTest(
'test append timestamp to resource path, with timestamp as single URL param, does not change it': performTimestampTest(
'cke4',
'style.css?t=qaz1',
'style.css?t=qaz1',
Expand All @@ -37,6 +37,13 @@
'style.css?q=abc&t=qaz1',
'style.css?q=abc&t=qaz1',
'Resource path with chained timestamp was affected with new timestamp'
),

'test append timestamp to resource path with URL params adds timestamp as another param': performTimestampTest(
'cke4',
'style.css?q=abc',
'style.css?q=abc&t=cke4',
'Resource path with single param has not been affected by timestamp'
)
} );

Expand Down

0 comments on commit 920f22e

Please sign in to comment.