Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to import the package in tests #35

Open
molinto opened this issue Apr 4, 2017 · 0 comments
Open

How to import the package in tests #35

molinto opened this issue Apr 4, 2017 · 0 comments

Comments

@molinto
Copy link

molinto commented Apr 4, 2017

Hi @apendua, thanks for your great work.

I'm hoping to compare a i18n value against a test value, but cannot get package to be imported as keeps saying. Error: Cannot find module 'meteor/anti:i18n'.

Tests are being ran via npm run test:dev-chimp:

"test:dev-chimp": "chimp --ddp=http://localhost:3000 --path=tests --watch --chai --mocha"

Code when testing (been shortened):

import { assert } from 'chai';
import i18n from 'meteor/anti:i18n';

...

it('Correct page title', function() {
   let title = browser.getTitle();
   expect(title).to.equal(i18n("pages.settings.user.settings"))
});

...

Any help greatly appreciated :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant