Skip to content

Commit

Permalink
Fix arrow functions parenthesis and imports order
Browse files Browse the repository at this point in the history
  • Loading branch information
Rui Marinho committed Apr 24, 2016
1 parent e1c1ba4 commit 19dda35
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,8 @@ import NullOrDate from './asserts/null-or-date-assert.js';
import NullOrString from './asserts/null-or-string-assert.js';
import Phone from './asserts/phone-assert.js';
import PlainObject from './asserts/plain-object-assert.js';
import UkModulusChecking from './asserts/uk-modulus-checking-assert.js';
import TaxpayerIdentificationNumber from './asserts/taxpayer-identification-number-assert.js';
import UkModulusChecking from './asserts/uk-modulus-checking-assert.js';
import Uri from './asserts/uri-assert.js';
import UsSubdivision from './asserts/us-subdivision-assert.js';
import UsZipCode from './asserts/us-zip-code-assert.js';
Expand Down Expand Up @@ -65,8 +65,8 @@ export default {
NullOrString,
Phone,
PlainObject,
UkModulusChecking,
TaxpayerIdentificationNumber,
UkModulusChecking,
Uri,
UsSubdivision,
UsZipCode,
Expand Down
4 changes: 2 additions & 2 deletions test/asserts/taxpayer-identification-number-assert_test.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
* Module dependencies.
*/

import { Assert as BaseAssert, Violation } from 'validator.js';
import TaxpayerIdentificationNumberAssert from '../../src/asserts/taxpayer-identification-number-assert';
import { Assert as BaseAssert, Violation } from 'validator.js';
import should from 'should';

/**
Expand All @@ -21,7 +21,7 @@ const Assert = BaseAssert.extend({

describe('TaxpayerIdentificationNumberAssert', () => {
it('should throw an error if the input value is not a string', () => {
[{}, []].forEach((choice) => {
[{}, []].forEach(choice => {
try {
new Assert().TaxpayerIdentificationNumber().validate(choice);

Expand Down
2 changes: 1 addition & 1 deletion test/index_test.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,8 @@ describe('validator.js-asserts', () => {
'NullOrString',
'Phone',
'PlainObject',
'UkModulusChecking',
'TaxpayerIdentificationNumber',
'UkModulusChecking',
'Uri',
'UsSubdivision',
'UsZipCode',
Expand Down

0 comments on commit 19dda35

Please sign in to comment.