mirror of
https://github.com/roytam1/palemoon27.git
synced 2026-06-02 23:31:47 +00:00
17 lines
421 B
JavaScript
17 lines
421 B
JavaScript
/* Any copyright is dedicated to the Public Domain.
|
|
http://creativecommons.org/publicdomain/zero/1.0/ */
|
|
|
|
/**
|
|
* Test that we can require tern.
|
|
*/
|
|
|
|
function run_test() {
|
|
const tern = require("tern/tern");
|
|
const ecma5 = require("tern/ecma5");
|
|
const browser = require("tern/browser");
|
|
do_check_true(!!tern);
|
|
do_check_true(!!ecma5);
|
|
do_check_true(!!browser);
|
|
do_check_eq(typeof tern.Server, "function");
|
|
}
|