Remove babel from the tutorial, assertion, async
This commit is contained in:
		| @@ -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 | ||||
|   | ||||
| @@ -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 () { | ||||
| }) | ||||
|   | ||||
| @@ -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 | ||||
|   | ||||
| @@ -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 () { | ||||
| }) | ||||
|   | ||||
| @@ -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 () { | ||||
| }) | ||||
|   | ||||
| @@ -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' | ||||
|   } | ||||
| ] | ||||
|   | ||||
		Reference in New Issue
	
	Block a user