Skip to content

Commit 683e853

Browse files
authoredAug 27, 2020
fix typo in example that calles new File(...)
The `File` constructor takes 2 arguments, first an array with data, second the name.
1 parent c7fbe04 commit 683e853

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎addon-test-support/@ember/test-helpers/dom/trigger-event.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ registerHook('triggerEvent', 'start', (target: Target, eventType: string) => {
4949
* 'drop',
5050
* {
5151
* dataTransfer: {
52-
* files: [new File(['Ember Rules!', 'ember-rules.txt'])]
52+
* files: [new File(['Ember Rules!'], 'ember-rules.txt')]
5353
* }
5454
* }
5555
* )

0 commit comments

Comments
 (0)
Please sign in to comment.