feat(change_detector): add support for negate
This commit is contained in:
@ -121,6 +121,11 @@ export function main() {
|
||||
expect(executeWatch('exp', 'false || false')).toEqual(['exp=false']);
|
||||
});
|
||||
|
||||
it("should support negate", () => {
|
||||
expect(executeWatch('exp', '!true')).toEqual(['exp=false']);
|
||||
expect(executeWatch('exp', '!!true')).toEqual(['exp=true']);
|
||||
});
|
||||
|
||||
it("should support formatters", () => {
|
||||
var formatters = {
|
||||
"uppercase" : (v) => v.toUpperCase(),
|
||||
|
Reference in New Issue
Block a user