Skip to content
This repository was archived by the owner on Mar 29, 2025. It is now read-only.

Commit ccf2f5e

Browse files
committed
Added a Screenplay example
1 parent ddd7fa0 commit ccf2f5e

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

spec/mocha.spec.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import { strictEqual } from 'assert';
22
import { describe, it } from 'mocha'
3+
import { actorCalled, Log } from '@serenity-js/core';
34

45
describe('Mocha', () => {
56

@@ -20,5 +21,11 @@ describe('Mocha', () => {
2021
it.skip('has any other errors as "failing" too', () => {
2122
throw new Error('Something went wrong')
2223
})
24+
25+
it('follows the Screenplay Pattern', () => {
26+
return actorCalled('Alice').attemptsTo(
27+
Log.the('Hello Serenity/JS'),
28+
)
29+
})
2330
})
2431
})

0 commit comments

Comments
 (0)