UNPKG

boats

Version:

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

21 lines (20 loc) 625 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); const tslib_1 = require("tslib"); const GetCheckCorrectBoatsRc_1 = tslib_1.__importDefault(require("../GetCheckCorrectBoatsRc")); it('should warn about the invalid string style types', async () => { // @ts-ignore global.console = { warn: jest.fn(), }; GetCheckCorrectBoatsRc_1.default.parse({ nunjucksOptions: { tags: {}, }, permissionConfig: { // @ts-ignore permissionStyle: 'snakeCase', }, }); expect(global.console.warn).toHaveBeenCalled(); });