* Add Downloads, Category, License, Sponge Versions, Stars, and Version badges for Ore, an API platform for Sponge Minecraft plugins * Update services/ore/ore-downloads.service.js Co-authored-by: Caleb Cartwright <calebcartwright@users.noreply.github.com> * Replace mocked e2e tests with unit tests, fix schema and add test case for Ore License * Simplify single case forCases Co-authored-by: Caleb Cartwright <calebcartwright@users.noreply.github.com> Co-authored-by: repo-ranger[bot] <39074581+repo-ranger[bot]@users.noreply.github.com>
22 lines
515 B
JavaScript
22 lines
515 B
JavaScript
'use strict'
|
|
|
|
const { test, forCases, given } = require('sazerac')
|
|
const OreCategory = require('./ore-category.service')
|
|
|
|
describe('OreCategory', function () {
|
|
test(OreCategory.prototype.transform, () => {
|
|
forCases([
|
|
given({ data: { category: 'admin_tools' } }),
|
|
given({ data: { category: 'admin tools' } }),
|
|
]).expect({
|
|
category: 'admin tools',
|
|
})
|
|
})
|
|
|
|
test(OreCategory.render, () => {
|
|
given({ category: 'admin tools' }).expect({
|
|
message: 'admin tools',
|
|
})
|
|
})
|
|
})
|