Skip to content

Commit

Permalink
Test if the sizes have the same length
Browse files Browse the repository at this point in the history
See #3
  • Loading branch information
alisonmonteiro committed Jul 12, 2019
1 parent 1e37015 commit 0974147
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions test.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,21 @@
import test from 'ava';
import m from '.';

test('ensure that a random size have the sabe length of the other', t => {
const euSize = m.sizes.eu.w.length;
const caSize = m.sizes.ca.m.length;

const usSize = m.sizes.us.m.length;
const brSize = m.sizes.br.w.length;

const cmSize = m.sizes.cm.w.length;
const inSize = m.sizes.in.m.length;

t.is(euSize, caSize);
t.is(usSize, brSize);
t.is(cmSize, inSize);
});

test('returns right values when passed a valid country', t => {
const sizes = m('uk', 'w', 3);

Expand Down

0 comments on commit 0974147

Please sign in to comment.