boats
Version:
Beautiful Open / Async Template System - Write less yaml with BOATS and Nunjucks.
11 lines (10 loc) • 499 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
const tslib_1 = require("tslib");
const getMethodFromFilePath_1 = tslib_1.__importDefault(require("../utils/getMethodFromFilePath"));
it('should return get from .yml file', async () => {
expect((0, getMethodFromFilePath_1.default)('some/path/get.yml')).toBe('get');
});
it('should return get from .yml.njk file', async () => {
expect((0, getMethodFromFilePath_1.default)('some/path/get.yml.njk')).toBe('get');
});