Skip to content

Commit e1b16e8

Browse files
Feature/add better tests for expressions (#380)
* Add tests for special cases for expressions
1 parent 2edb435 commit e1b16e8

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

__TESTS__/unit/actions/Variable.test.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -178,4 +178,10 @@ describe('Tests for Transformation Action -- Variable', () => {
178178

179179
expect(url).toBe('https://res.cloudinary.com/demo/image/upload/$myexp_md:!my_file!_to_f/sample');
180180
});
181+
182+
it('Tests special cases are not modified in expressions', () => {
183+
['$myheight', '$heightheight', '$theheight', '$__height'].forEach((exp: string) => {
184+
expect(Expression.expression(exp).toString()).toBe(exp);
185+
});
186+
});
181187
});

0 commit comments

Comments
 (0)