UNPKG

auto-cms-server

Version:

Auto turn any webpage into editable CMS without coding.

16 lines (15 loc) 544 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); const chai_1 = require("chai"); const i18n_1 = require("./i18n"); function test(input, output) { (0, chai_1.expect)((0, i18n_1.extractWrappedText)(input)).to.deep.equals(output); } describe('extractWrappedText()', () => { it('should extract in single-line', () => { test('{{Happy Customer.}}', ['{{Happy Customer.}}']); }); it('should extract in multi-line', () => { test('{{Happy\nCustomer.}}', ['{{Happy\nCustomer.}}']); }); });