diff options
| author | Eugen Wissner <belka@caraus.de> | 2025-07-16 16:39:09 +0200 |
|---|---|---|
| committer | Eugen Wissner <belka@caraus.de> | 2025-07-16 16:39:09 +0200 |
| commit | decd8e9e3d98d79b33c56e1c1a53e11fb5047c4a (patch) | |
| tree | 70e4c86900f0a2363036d47f440e3269ecff02fb /data-tables/features/steps/json.js | |
| parent | ef41c7d7884fa4fae8b6eba53d8fab0f584a97cf (diff) | |
| download | cucumber-js-demo-decd8e9e3d98d79b33c56e1c1a53e11fb5047c4a.tar.gz | |
Use node assertions as standard solution
Diffstat (limited to 'data-tables/features/steps/json.js')
| -rw-r--r-- | data-tables/features/steps/json.js | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/data-tables/features/steps/json.js b/data-tables/features/steps/json.js index f9fe87c..edeb375 100644 --- a/data-tables/features/steps/json.js +++ b/data-tables/features/steps/json.js @@ -1,5 +1,5 @@ import { Given, When, Then } from '@cucumber/cucumber' -import { expect } from 'chai' +import assert from 'node:assert/strict' Given('the following books by Simon Frank are in the collection:', function (dataTable) { this.objects = [] @@ -45,6 +45,5 @@ When('I stringify it', function () { }) Then('I should get:', function (expected) { - expect(JSON.parse(expected)) - .to.deep.equal(JSON.parse(this.result)) + assert.deepEqual(JSON.parse(expected), JSON.parse(this.result)) }) |
