frontend_tests: Use let with explicit null in components test.

Even though this variable was only assigned once, it was accessed
before its initialization, so it couldn’t be converted directly to
`let` or `const`.  Use `let` with an explicit `null` to make it
clearer what’s going on and satisfy ESLint.  (Why not `undefined`?
There’s an ESLint rule against that too.)

Signed-off-by: Anders Kaseorg <anders@zulipchat.com>
This commit is contained in:
Anders Kaseorg 2019-10-25 16:49:36 -07:00 committed by Tim Abbott
parent a547413347
commit c3b4c0a229
1 changed files with 1 additions and 1 deletions

View File

@ -124,7 +124,7 @@ run_test('basics', () => {
var callback_value;
var widget;
let widget = null;
widget = components.toggle({
selected: 0,
values: [