Skip to content

Instantly share code, notes, and snippets.

@ericelliott
Created August 3, 2012 22:10
Show Gist options
  • Save ericelliott/3252035 to your computer and use it in GitHub Desktop.
Save ericelliott/3252035 to your computer and use it in GitHub Desktop.
(function (app) {
describe('i18n', function () {
it('should exist', function () {
waitsFor(function () {
return app.i18n && app.i18n.whenLoaded.isResolved();
});
runs(function () {
expect(applitude.i18n).toBeDefined();
});
});
it('should translate', function () {
waitsFor(function () {
return app.i18n && app.i18n.whenLoaded.isResolved();
});
runs(function () {
expect(app.t('app.brand.name')).toEqual('Tout');
});
});
});
}(applitude));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment