Use node assertions as standard solution
This commit is contained in:
		@@ -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))
 | 
			
		||||
})
 | 
			
		||||
 
 | 
			
		||||
							
								
								
									
										1207
									
								
								data-tables/package-lock.json
									
									
									
										generated
									
									
									
								
							
							
						
						
									
										1207
									
								
								data-tables/package-lock.json
									
									
									
										generated
									
									
									
								
							
										
											
												File diff suppressed because it is too large
												Load Diff
											
										
									
								
							@@ -10,7 +10,6 @@
 | 
			
		||||
  "author": "Eugen Wissner <belka@caraus.de>",
 | 
			
		||||
  "license": "MPL-2.0",
 | 
			
		||||
  "dependencies": {
 | 
			
		||||
    "@cucumber/cucumber": "^11.1.1",
 | 
			
		||||
    "chai": "^5.1.2"
 | 
			
		||||
    "@cucumber/cucumber": "^12.0.0"
 | 
			
		||||
  }
 | 
			
		||||
}
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user