From dfa2facbee1acee493d72f7841d1cc59f99b50de Mon Sep 17 00:00:00 2001 From: Marcin Rabenda Date: Fri, 8 Sep 2023 11:35:52 +0200 Subject: [PATCH] remove overlaping test --- test/index.js | 20 +------------------- 1 file changed, 1 insertion(+), 19 deletions(-) diff --git a/test/index.js b/test/index.js index a21479bd86..9ec87beef8 100644 --- a/test/index.js +++ b/test/index.js @@ -65,7 +65,7 @@ test('logos path names should not contain space', function (t) { t.end() }) -test('symbols should be six or less characters', function (t) { +test('symbols should be eleven or less characters', function (t) { Object.keys(contractMap).forEach(address => { const contract = contractMap[address] const symbol = contract.symbol @@ -88,21 +88,3 @@ test('only permitted fields should be used', function (t) { t.end() }) - -test('symbols should not overlap', function (t) { - const symbols = Object.values(contractMap).map(contract => contract.symbol) - const symbolsCheck = new Map() - let duplicateSymbol - - symbols.forEach(symbol => { - if (symbolsCheck.has(symbol) && symbol !== undefined) { - duplicateSymbol = symbol - return - } - symbolsCheck.set(symbol, true) - }) - - const msg = duplicateSymbol ? `found overlapping symbol ${duplicateSymbol}` : 'symbols should not overlap' - t.notOk(duplicateSymbol, msg) - t.end() -})