Skip to content

Commit

Permalink
remove overlaping test (#1219)
Browse files Browse the repository at this point in the history
  • Loading branch information
MRabenda authored Sep 12, 2023
1 parent a3ed340 commit c66dcd3
Showing 1 changed file with 1 addition and 19 deletions.
20 changes: 1 addition & 19 deletions test/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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()
})

0 comments on commit c66dcd3

Please sign in to comment.