4 (ert-deftest js2-finds-jslint-globals ()
6 (insert "/*global foo, bar:false, baz: true */")
8 (should (equal (js2-get-jslint-globals)
9 '("foo" "bar" "baz")))))
11 (ert-deftest js2-no-jslint-globals-without-keyword ()
13 (insert "/* foo, bar:false, baz: true */")
15 (should (null (js2-get-jslint-globals)))))
17 (ert-deftest js2-finds-jslint-globals-in-other-comments ()
19 (insert "/* foo, bar */\n\n\n/*global quux, tee: true, $*/")
21 (should (equal (js2-get-jslint-globals)
22 '("quux" "tee" "$")))))