zulip/frontend_tests/zjsunit
Steve Howell 6b39d6004e zjquery: Use Proxy to detect undefined stubs.
We now use a Proxy to wrap zjquery elements, so
that we can detect callers trying to invoke methods
(or access attributes) that do not exist.  We try
to give useful error messages in those cases.

The main impact here is that we force lots of tests
to explicitly stub `length`.

Also, we can't do equality checks on zjquery
objects any more due to the proxy object, but the
easy workaround is to compare selectors.  (This
is generally an unnecessary technique, anyway.)

The proxy wrapper is fairly straightforward, and
we just have a few special cases for things like
"inspect" that happen when you try to print out
objects.
2019-05-20 11:28:32 -07:00
..
bugdown_assert.js eslint: Add key-spacing linter rule. 2018-12-18 10:41:06 -08:00
finder.js eslint: Enable `no-extra-parens` rule. 2018-06-11 07:51:24 -04:00
i18n.js i18n: Remove now-unused ensure_i18n function. 2018-05-30 09:13:48 -07:00
index.js typescript: Move TS files into JS directory. 2019-03-25 12:11:37 -07:00
mdiff.js eslint: Add key-spacing linter rule. 2018-12-18 10:41:06 -08:00
namespace.js typescript: Move TS files into JS directory. 2019-03-25 12:11:37 -07:00
render.js node tests: Remove requirement to test all templates. 2018-05-24 09:30:22 -07:00
stub.js node tests: Add with_stub() helper. 2017-03-13 15:09:53 -07:00
zblueslip.js zblueslip: Store more_info and stack as well in the logs. 2018-07-10 16:22:52 -04:00
zjquery.js zjquery: Use Proxy to detect undefined stubs. 2019-05-20 11:28:32 -07:00