terra-base
Advanced tools
Comparing version 5.45.0 to 5.46.0
@@ -5,2 +5,9 @@ # Changelog | ||
## 5.46.0 - (April 6, 2021) | ||
* Changed | ||
* Removed unnecessary `wdio.conf.js` file | ||
* Upgrade tests to terra-functional-testing and WebDriverIO v6 | ||
* Updated jest tests to verify the custom prop validation in another way. | ||
## 5.45.0 - (February 9, 2021) | ||
@@ -7,0 +14,0 @@ |
@@ -42,3 +42,3 @@ "use strict"; | ||
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Date.prototype.toString.call(Reflect.construct(Date, [], function () {})); return true; } catch (e) { return false; } } | ||
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } } | ||
@@ -45,0 +45,0 @@ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); } |
@@ -34,3 +34,3 @@ "use strict"; | ||
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Date.prototype.toString.call(Reflect.construct(Date, [], function () {})); return true; } catch (e) { return false; } } | ||
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } } | ||
@@ -37,0 +37,0 @@ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); } |
{ | ||
"name": "terra-base", | ||
"main": "lib/Base.js", | ||
"version": "5.45.0", | ||
"version": "5.46.0", | ||
"description": "The base component sets minimal global styles for an application.", | ||
@@ -32,3 +32,3 @@ "repository": { | ||
"prop-types": "^15.5.8", | ||
"terra-i18n": "^4.36.0" | ||
"terra-i18n": "^4.37.0" | ||
}, | ||
@@ -42,9 +42,9 @@ "scripts": { | ||
"test": "npm run lint && npm run jest && npm run wdio", | ||
"jest": "jest --config ../../jestconfig.js", | ||
"wdio-default": "cd ../.. && npx wdio", | ||
"wdio-lowlight": "cd ../.. && THEME=clinical-lowlight-theme npx wdio", | ||
"wdio-fusion": "cd ../.. && THEME=orion-fusion-theme npx wdio", | ||
"jest": "jest --config ../../jest.config.js", | ||
"wdio-default": "cd ../.. && terra wdio", | ||
"wdio-lowlight": "cd ../.. && terra wdio --themes clinical-lowlight-theme", | ||
"wdio-fusion": "cd ../.. && terra wdio --themes orion-fusion-theme", | ||
"wdio": "npm run wdio-default && npm run wdio-lowlight && npm run wdio-fusion" | ||
}, | ||
"gitHead": "7cf568bd47996ec173dfed75c22746d4891ade26" | ||
"gitHead": "b6ddb01d67dc1ecbe6fd0eba0ddc8f46b7eb3d61" | ||
} |
@@ -10,6 +10,9 @@ import React from 'react'; | ||
it('throws error for missing required locale', () => { | ||
// eslint-disable-next-line no-console | ||
console.error = jest.fn(); | ||
const messages = { Terra: 'Terra' }; | ||
expect(() => shallow(<Base customMessages={messages}>String</Base>)) | ||
.toThrowError(/The prop `locale` is marked as required in `Base`/); | ||
shallow(<Base customMessages={messages}>String</Base>); | ||
// eslint-disable-next-line no-console | ||
expect(console.error).toHaveBeenCalled(); | ||
}); | ||
@@ -16,0 +19,0 @@ |
@@ -5,8 +5,8 @@ Terra.describeViewports('Base', ['tiny'], () => { | ||
it('Displays a default en locale message', () => { | ||
expect(browser.getText('#message')).to.equal('en'); | ||
expect($('#message').getText()).toEqual('en'); | ||
}); | ||
it('Displays a customized en-US locale message', () => { | ||
browser.click('#switch'); | ||
expect(browser.getText('#message')).to.equal('en-US'); | ||
$('#switch').click(); | ||
expect($('#message').getText()).toEqual('en-US'); | ||
}); | ||
@@ -18,3 +18,3 @@ }); | ||
browser.url('/#/raw/tests/terra-base/base/no-translations-loaded-base'); | ||
expect($('div').getText()).to.not.contain('No Translations'); | ||
expect($('div')).not.toHaveTextContaining('No Translations'); | ||
}); | ||
@@ -24,5 +24,5 @@ | ||
browser.url('/#/raw/tests/terra-base/base/no-translations-loaded-string-base'); | ||
expect($('div').getText()).to.not.contain('No Translations String'); | ||
expect($('div')).not.toHaveTextContaining('No Translations String'); | ||
}); | ||
}); | ||
}); |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
72529
33
633
Updatedterra-i18n@^4.37.0