Add Downloads, Category, License, Sponge Versions, Stars, and Version badges for [Ore], an API platform for Sponge Minecraft plugins (#5757)
* 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>
This commit is contained in:
21
services/ore/ore-category.spec.js
Normal file
21
services/ore/ore-category.spec.js
Normal file
@@ -0,0 +1,21 @@
|
||||
'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',
|
||||
})
|
||||
})
|
||||
})
|
||||
Reference in New Issue
Block a user