cards.test.js 258 B

123456789101112131415161718
  1. var cards = require('./cards.js');
  2. let hahah = {
  3. attack: 5
  4. }
  5. //cards.insert('testcard', hahah);
  6. cards.getAll().then(console.log);
  7. const card = {
  8. user: 'nikatlas',
  9. more: 'shit'
  10. };
  11. const newcard = cards.verify(card);
  12. cards.insert('Verified', newcard);