From b0a678e2c381fd2dee6ff8ebde279c9cb68e5b05 Mon Sep 17 00:00:00 2001 From: Krinkle Date: Sun, 8 Sep 2024 01:05:39 +0000 Subject: [PATCH] Build commit bf42d2b7738d7be9ee638fd41359eff6f1ca12c1 --- api/QUnit/test.each/index.html | 25 ++++++++++++++++++++++++- feed.xml | 2 +- 2 files changed, 25 insertions(+), 2 deletions(-) diff --git a/api/QUnit/test.each/index.html b/api/QUnit/test.each/index.html index d56260341..47fffbb21 100644 --- a/api/QUnit/test.each/index.html +++ b/api/QUnit/test.each/index.html @@ -135,6 +135,21 @@

Callback parameters

The only, todo, skip, and if variants are also available, as QUnit.test.only.each, QUnit.test.todo.each, QUnit.test.skip.each, and QUnit.test.if.each respectively.

+

Changelog

+ + + + + + + + + + + + +
UNRELEASEDAdd automatic labels for primitive values in arrays.
QUnit 2.16.0Introduce QUnit.test.each().
+

Examples

Basic data provider

@@ -146,6 +161,14 @@

Basic data provider

QUnit.test.each('isEven()', [2, 4, 6], (assert, data) => { assert.true(isEven(data), `${data} is even`); }); + +QUnit.test.each('truthy', ['a', 42, true, Infinity], (assert, data) => { + assert.true(!!data); +}); + +QUnit.test.each('falsy', [false, null], (assert, data) => { + assert.false(!!data); +});

Array data provider

@@ -249,7 +272,7 @@

Deprecated methods

Removed methods


-

Table of contents

+

Table of contents

diff --git a/feed.xml b/feed.xml index aeca2e0dd..6b0d8aa86 100644 --- a/feed.xml +++ b/feed.xml @@ -1 +1 @@ -Jekyll2024-09-05T20:23:52+00:00https://qunitjs.com/feed.xmlQUnitThe powerful, easy-to-use JavaScript testing framework. \ No newline at end of file +Jekyll2024-09-08T01:05:36+00:00https://qunitjs.com/feed.xmlQUnitThe powerful, easy-to-use JavaScript testing framework. \ No newline at end of file