SquireJs - Mocking Nested / Conditional Dependencies

Code:

...
if (this.getCurrentRoute() === '') {
  require(['modules/project/project.module', 'modules/topic/topic.module'], function() {
        TopicEditor.navigate('project/new/books/' + bookIds + '/template/' + TopicEditor.config.library.bookTemplateId + '/', {
            trigger: true
        });
  });
}
...

This code is part of the file being tested.

When I run the tests, I get a bunch of 404 errors related to the dependencies of the above modules despite being mocked via injector.mock. I think it has something to do with the asynchronous nature of requirejs. From what I can tell, the require statements are being executed outside of squirejs's context, which means the modules are loading normally.

Has anyone else ever ran into this kind of testing scenario?