ConcourseOpen/DeFi-Pulse-Adapters

validate script failure

Opened this issue · 0 comments

The validate script fails due to the category of some projects not matching the categories[] expected by the test.

There's also the misspelled 'categoy' but i'll open a pull for that.


./testing/validate/export.js

  const categories = [
    'derivatives',
    'dexes',
    'lending',
    'payments',
    'assets'
  ]
...
it('categoy matches one of the defined options', () => {
        chai.expect(project.category).to.be.oneOf(categories);
});
...
  • connext uses 'Lending'
  • curve uses 'DEXes'
  • dydx uses 'Lending'
  • kyber uses 'DEXes'

The confusion is being created due to the _template project having a comment mentioning the incorrect values.

./projects/template/index.js

module.exports = {
...
 category: 'assets'  // allowed values as shown on DefiPulse: 'Derivatives', 'DEXes', 'Lending', 'Payments', 'Assets'
...
  }