-
Notifications
You must be signed in to change notification settings - Fork 12
Expand file tree
/
Copy pathfind.output.js
More file actions
29 lines (24 loc) · 952 Bytes
/
find.output.js
File metadata and controls
29 lines (24 loc) · 952 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
import { findAll } from '@ember/test-helpers';
import { test } from 'qunit';
import moduleForAcceptance from '../../tests/helpers/module-for-acceptance';
moduleForAcceptance('find');
test('anonymous function callback with two args', function(assert) {
const elemIds = findAll('.button-class').find((element, index) => {
assert.equal(element.id, `button${index}`);
});
});
test('anonymous function callback with one arg', function(assert) {
const elemIds = findAll('.button-class').find((element, index) => {
assert.equal(element.id, `button${index}`);
});
});
test('function callback with two args', function(assert) {
const elemIds = findAll('.button-class').find(function(elem, i) {
assert.equal(element.id, `button${index}`);
});
});
test('function callback with one arg', function(assert) {
const elemIds = findAll('.button-class').find((element, index) => {
assert.equal(element.id, `button${index}`);
});
});