Update Jasmine to v3. Fixes #3182

This commit is contained in:
Joao Pedro De Almeida Pereira 2018-03-07 16:01:04 +00:00 committed by Dave Page
parent d3c303e455
commit e7316e2181
3 changed files with 6 additions and 5 deletions

View File

@ -18,7 +18,7 @@
"file-loader": "^0.11.2", "file-loader": "^0.11.2",
"image-webpack-loader": "^3.3.1", "image-webpack-loader": "^3.3.1",
"is-docker": "^1.1.0", "is-docker": "^1.1.0",
"jasmine-core": "~2.9.0", "jasmine-core": "~3.1.0",
"jasmine-enzyme": "~4.1.1", "jasmine-enzyme": "~4.1.1",
"karma": "~1.5.0", "karma": "~1.5.0",
"karma-babel-preprocessor": "^6.0.1", "karma-babel-preprocessor": "^6.0.1",

View File

@ -13,7 +13,8 @@ import translations from 'translations';
describe('translate', function () { describe('translate', function () {
describe('when there is no translation', function () { describe('when there is no translation', function () {
it('returns the original string', function () { it('returns the original string', function () {
expect(gettext('something to be translated')).toEqual('something to be translated'); expect(gettext('something else to be translated')).toEqual('something' +
' else to be translated');
}); });
describe('when there are substitutions', function () { describe('when there are substitutions', function () {

View File

@ -4267,9 +4267,9 @@ isurl@^1.0.0-alpha5:
has-to-string-tag-x "^1.2.0" has-to-string-tag-x "^1.2.0"
is-object "^1.0.1" is-object "^1.0.1"
jasmine-core@~2.9.0: jasmine-core@~3.1.0:
version "2.9.1" version "3.1.0"
resolved "https://registry.yarnpkg.com/jasmine-core/-/jasmine-core-2.9.1.tgz#b6bbc1d8e65250d56f5888461705ebeeeb88f22f" resolved "https://registry.yarnpkg.com/jasmine-core/-/jasmine-core-3.1.0.tgz#a4785e135d5df65024dfc9224953df585bd2766c"
jasmine-enzyme@~4.1.1: jasmine-enzyme@~4.1.1:
version "4.1.1" version "4.1.1"