Fixes: U4-4084 Macro's with non alphanumeric chars in their aliases cannot render in the rich text editor

This commit is contained in:
Shannon
2014-01-20 13:59:25 +11:00
parent eb44480fdf
commit f0573fc68c
4 changed files with 103 additions and 11 deletions

View File

@@ -21,6 +21,20 @@ describe('macro service tests', function () {
expect(result.marcoParamsDictionary.test2).toBe("hello");
});
it('can parse syntax for macros with aliases containing dots', function () {
var result = macroService.parseMacroSyntax("<?UMBRACO_MACRO macroAlias='Map.Test' test1=\"asdf\" test2='hello' />");
expect(result).not.toBeNull();
expect(result.macroAlias).toBe("Map.Test");
expect(result.marcoParamsDictionary.test1).not.toBeUndefined();
expect(result.marcoParamsDictionary.test1).toBe("asdf");
expect(result.marcoParamsDictionary.test2).not.toBeUndefined();
expect(result.marcoParamsDictionary.test2).toBe("hello");
});
it('can parse syntax for macros with body', function () {