wip
This commit is contained in:
parent
52e4323eda
commit
5c4874d526
|
@ -25,7 +25,7 @@ function isObject(value: string | any[]) {
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
const HELPERS = [
|
export const HELPERS = [
|
||||||
// external helpers
|
// external helpers
|
||||||
new Helper(HelperFunctionNames.OBJECT, (value: any) => {
|
new Helper(HelperFunctionNames.OBJECT, (value: any) => {
|
||||||
return new Handlebars.SafeString(JSON.stringify(value))
|
return new Handlebars.SafeString(JSON.stringify(value))
|
||||||
|
|
|
@ -10,6 +10,8 @@ import {
|
||||||
findHBSBlocks,
|
findHBSBlocks,
|
||||||
} from "../src/index"
|
} from "../src/index"
|
||||||
|
|
||||||
|
import { HELPERS } from "../src/helpers/index"
|
||||||
|
|
||||||
describe("Test that the string processing works correctly", () => {
|
describe("Test that the string processing works correctly", () => {
|
||||||
it("should process a basic template string", async () => {
|
it("should process a basic template string", async () => {
|
||||||
const output = await processString("templating is {{ adjective }}", {
|
const output = await processString("templating is {{ adjective }}", {
|
||||||
|
@ -338,3 +340,10 @@ describe("check multiple space behaviour", () => {
|
||||||
expect(output).toEqual("test string")
|
expect(output).toEqual("test string")
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
|
|
||||||
|
describe.only("MikeTest1", () => {
|
||||||
|
it("miktest111", async () => {
|
||||||
|
const output = "%5B41%5D"
|
||||||
|
expect(output).toEqual(HELPERS)
|
||||||
|
})
|
||||||
|
})
|
||||||
|
|
Loading…
Reference in New Issue