From 0974147886cf1300648204385f0bae719c89bda1 Mon Sep 17 00:00:00 2001 From: Alison Monteiro Date: Fri, 12 Jul 2019 17:47:35 -0300 Subject: [PATCH] Test if the sizes have the same length See #3 --- test.js | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/test.js b/test.js index dbe66ab..f77449a 100644 --- a/test.js +++ b/test.js @@ -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);