1
0

Remove babel from the tutorial, assertion, async

This commit is contained in:
2024-12-19 23:54:35 +01:00
parent ce48d31769
commit 53e4c5dba6
34 changed files with 18352 additions and 9029 deletions

View File

@ -1,5 +1,5 @@
const { expect } = require('chai')
const { Then } = require('cucumber')
import { expect } from 'chai'
import { Then } from '@cucumber/cucumber'
Then('I can choose the expect syntax', function () {
expect(true).to.be.true

View File

@ -1,6 +1,6 @@
const { expect } = require('chai')
const { When, Then } = require('cucumber')
const compared = require('../support/compared')
import { expect } from 'chai'
import { When, Then } from '@cucumber/cucumber'
import * as compared from '../support/compared.js'
When('I use chai', function () {
})

View File

@ -1,5 +1,7 @@
const { Then } = require('cucumber')
require('chai').should()
import { Then } from '@cucumber/cucumber'
import { should } from 'chai'
should()
Then('I can choose the should syntax', function () {
const boolean = true

View File

@ -1,6 +1,6 @@
const expect = require('expect')
const { When, Then } = require('cucumber')
const compared = require('../support/compared')
import expect from 'expect'
import { When, Then } from '@cucumber/cucumber'
import * as compared from '../support/compared.js'
When('I use jest', function () {
})

View File

@ -1,6 +1,6 @@
const assert = require('assert')
const { When, Then } = require('cucumber')
const compared = require('../support/compared')
import assert from 'assert'
import { When, Then } from '@cucumber/cucumber'
import * as compared from '../support/compared.js'
When('I use node', function () {
})

View File

@ -1,9 +1,7 @@
module.exports = {
actual: {},
expected: [
{
author: 'Nicolaus Cusanus',
title: 'Die belehrte Unwissenheit'
}
]
}
export const actual = {}
export const expected = [
{
author: 'Nicolaus Cusanus',
title: 'Die belehrte Unwissenheit'
}
]