Skip to content

Commit 96c4ea9

Browse files
author
David Tang
committed
ESLint
1 parent def5338 commit 96c4ea9

File tree

2 files changed

+3
-6
lines changed

2 files changed

+3
-6
lines changed
Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,12 @@
1-
import Ember from 'ember';
21
import { validatePresence, validateLength } from 'ember-changeset-validations/validators';
32
import validateSometimes from 'ember-changeset-conditional-validations/validators/sometimes';
43

5-
const { get } = Ember;
6-
74
export default {
85
paymentMethod: validatePresence(true),
96
creditCardNumber: validateSometimes([
107
validatePresence(true),
118
validateLength({ is: 16 })
12-
], function(changes, content) {
9+
], function() {
1310
return this.get('paymentMethod') === 'credit-card';
1411
})
1512
};

tests/unit/validators/sometimes-test.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ test('this.get() to access the changes', function(assert) {
9595
creditCardNumber: validateSometimes([
9696
validatePresence(true),
9797
validateLength({ is: 16 })
98-
], function(changes, content) {
98+
], function() {
9999
return this.get('paymentMethod') === 'credit-card';
100100
})
101101
};
@@ -121,7 +121,7 @@ test('this.get() to access the content', function(assert) {
121121
creditCardNumber: validateSometimes([
122122
validatePresence(true),
123123
validateLength({ is: 16 })
124-
], function(changes, content) {
124+
], function() {
125125
return this.get('paymentMethod') === 'credit-card';
126126
})
127127
};

0 commit comments

Comments
 (0)