Skip to content

Commit

Permalink
Converted spaces to tabs
Browse files Browse the repository at this point in the history
  • Loading branch information
pablinos committed Feb 14, 2020
1 parent 6c55fcb commit 211c300
Showing 1 changed file with 22 additions and 22 deletions.
44 changes: 22 additions & 22 deletions extensions/shared/test/get-validated-attributes.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,28 +10,28 @@ const colourValidator = value => hexRegex.test( value );
const urlValidator = url => ! url || url.startsWith( 'http' );

const defaultAttributes = {
boolean: {
default: true,
type: 'boolean',
},
color: {
default: 'ffffff',
type: 'string',
validator: colourValidator,
},
language: {
default: 'en',
type: 'string',
validValues: [ 'en', 'fr', 'de', 'es', 'he', 'jp' ],
},
url: {
type: 'string',
validator: urlValidator,
},
freeform: {
default: 'one',
type: 'string',
},
boolean: {
default: true,
type: 'boolean',
},
color: {
default: 'ffffff',
type: 'string',
validator: colourValidator,
},
language: {
default: 'en',
type: 'string',
validValues: [ 'en', 'fr', 'de', 'es', 'he', 'jp' ],
},
url: {
type: 'string',
validator: urlValidator,
},
freeform: {
default: 'one',
type: 'string',
},
};

describe( 'getValidatedAttributes', () => {
Expand Down

0 comments on commit 211c300

Please sign in to comment.