Я хочу написать тесты JS. Производственный код написан с RequireJS. Я нашел тестовую библиотеку с именем Squire.js: https://github.com/iammerrick/Squire.js/
С сайта Squire.js
Запуск генерирует функцию, которая получит выполненный обратный вызов и выполнит его после завершения тестовой функции. Особенно полезно для фреймворков, где асинхронность обрабатывается с помощью обратного вызова. Вот пример с Mocha.js. Жасмин может предложить этот подход обратного вызова с использованием Jasmin.Async. "
Я не знаю, как использовать это с асинхронным Jasmine. Небольшой пример был бы очень полезен.