Skip to content
This repository has been archived by the owner on Jun 26, 2020. It is now read-only.

T/107: A test util for checking multi assertions for different browsers #108

Merged
merged 6 commits into from
Nov 16, 2017

Conversation

pomek
Copy link
Member

@pomek pomek commented Nov 14, 2017

Suggested merge commit message (convention)

Tests: Added a new util which executes specified assertions. Closes ckeditor/ckeditor5#2927.

@szymonkups szymonkups requested a review from Reinmar November 14, 2017 15:29
@szymonkups
Copy link
Contributor

szymonkups commented Nov 14, 2017

I'm not quite sure about the name: checkAssertions but cannot figure out anything better 😄

* testUtils.checkAssertions( assertEdge, assertAll );
* } );
*
* @param {Array.<Function>} assertions Functions that will be executed.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not an array with functions. It should be documented as {...Function}.

testUtils.createSinonSandbox();

describe( 'utils', () => {
describe( 'checkAssertions', () => {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

checkAssertions()

@szymonkups szymonkups merged commit a2ba3b1 into master Nov 16, 2017
@szymonkups szymonkups deleted the t/107 branch November 16, 2017 16:25
ma2ciek pushed a commit that referenced this pull request Nov 28, 2017
Tests: Added a new test util `checkAssertions()`. It executes specified assertions and throws only when all assertions fail . Closes #107.
ma2ciek pushed a commit that referenced this pull request Nov 28, 2017
Tests: Added a new test util `checkAssertions()`. It executes specified assertions and throws only when all assertions fail . Closes #107.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Create a test util for checking few assertions for different browsers
3 participants