libdot: test: fix chai test detection Both lib.assert & nassh/js/nasftp_cli.js use chai in the global namespace to detect whether we're running unittests or production code. This broke a year ago when we upgraded to chai v5 which switched from global imports to ES6 modules. The nasftp code wasn't logging as verbosely during tests (which isn't a big deal), and all of our libdot-based asserts were skipped during tests. The latter is not good, but since we haven't broken any of the tests, it's OK to re-enable so the asserts actually assert. Change-Id: I0ddb5d3d14c3d5bbd8ee455911e9d321a249d541 Reviewed-on: https://chromium-review.googlesource.com/c/apps/libapps/+/8086814 Tested-by: kokoro <noreply+kokoro@google.com> Reviewed-by: Joel Hockey <joelhockey@chromium.org>
This repository contains the libdot JavaScript library and some web applications that make use of it.
The official copy of this repository is hosted at https://chromium.googlesource.com/apps/libapps.
There is also a mirror on github at https://github.com/libapps/libapps-mirror. A few subprojects are also extracted out into their own git repo and mirrored. Keep in mind that these mirrors may occasionally be behind the official repository.
All changes must go through the Gerrit code review server on https://chromium-review.googlesource.com. Github pull requests cannot be accepted. Please see the HACK.md document in this directory for the details.
libdot/ is a small set of JS libraries initially developed as part of hterm, now available as shared code.
hterm/ is a JS library that provides a terminal emulator. It is reasonably fast, reasonably correct, and reasonably portable across browsers.
nassh/ is the Chrome Secure Shell extension that combines hterm with a build of OpenSSH to provide a PuTTY-like app for Chrome users.
ssh_client/ is the WASM port of OpenSSH.
terminal/ is the ChromeOS Terminal application.
wassh/ is the JS part of the WASM OpenSSH port.
wasi-js-bindings/ provides JS bindings for WASI which is used by the WASM port.