Commit Graph

2 Commits

Author SHA1 Message Date
Anand Srinivasan
3a4658c8f5
fix: unexpected return error (#9432)
* assign undefined for empty scripts during evaluation

* add unit tests

* handle anonymous_function when undefined

* update unit tests

* remove unwanted assignments in evaluation scripts

* update unit tests

* Update app/client/src/workers/evaluate.test.ts

* fix lint cypress tests

* remove semicolon

* fix API_bugs_spec

* undo anonymous function change

* Update app/client/src/workers/evaluate.ts

Co-authored-by: Hetu Nandu <hetunandu@gmail.com>

* add comment

* return back when JS is empty

* Update app/client/src/workers/evaluate.ts

Co-authored-by: Hetu Nandu <hetunandu@gmail.com>
Co-authored-by: Arpit Mohan <arpit@appsmith.com>
2021-12-21 20:00:19 +05:30
NandanAnantharamu
294032376f
test: lint error/warning tests (#7211)
* Test for lint

* Basic tests for Linting Warning/Error

* Updated tests

* Updated tests

* Updated tests with another lint scenario

* updated test

* Added tests for list and text Widget

* Updated tests

* Updated tests
2021-10-27 12:54:02 +05:30