UNPKG

boats

Version:

Beautiful Open / Async Template System - Write less yaml with BOATS and Nunjucks.

16 lines (15 loc) 611 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); const tslib_1 = require("tslib"); const routePermission_1 = tslib_1.__importDefault(require("../routePermission")); it('should return the global then the prefix then the rest without the method - all camelCased', async () => { const r = (0, routePermission_1.default)({ nunjucksOptions: { tags: {}, }, permissionConfig: { globalPrefix: 'hello', }, }, 'src/paths/weather-is-bad/get.yml', 'src/paths', 'bob', '', true); expect(r).toBe('helloBobReadWeatherIsBad'); });