mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-02-03 23:00:14 -05:00
various test 🐛 fixes
refs #6550 - cleanup deprecation messages - fix get `undefined` error in tests
This commit is contained in:
parent
1fabe0805a
commit
df720934e1
2 changed files with 6 additions and 1 deletions
|
@ -128,6 +128,11 @@ export default Mixin.create({
|
||||||
hasDirtyAttributes: computed.apply(Ember, watchedProps.concat({
|
hasDirtyAttributes: computed.apply(Ember, watchedProps.concat({
|
||||||
get() {
|
get() {
|
||||||
let model = this.get('model');
|
let model = this.get('model');
|
||||||
|
|
||||||
|
if (!model) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
let markdown = model.get('markdown');
|
let markdown = model.get('markdown');
|
||||||
let title = model.get('title');
|
let title = model.get('title');
|
||||||
let titleScratch = model.get('titleScratch');
|
let titleScratch = model.get('titleScratch');
|
||||||
|
|
|
@ -2,6 +2,6 @@ window.deprecationWorkflow = window.deprecationWorkflow || {};
|
||||||
window.deprecationWorkflow.config = {
|
window.deprecationWorkflow.config = {
|
||||||
workflow: [
|
workflow: [
|
||||||
{handler: 'silence', matchMessage: 'Using the injected `container` is deprecated. Please use the `getOwner` helper instead to access the owner of this object.'},
|
{handler: 'silence', matchMessage: 'Using the injected `container` is deprecated. Please use the `getOwner` helper instead to access the owner of this object.'},
|
||||||
{handler: 'silence', matchMessage: 'You modified (-join-classes \'ember-view\' \'form-group\' (-normalize-class \'errorClass\' errorClass activeClass=undefined inactiveClass=undefined)) twice in a single render. This was unreliable in Ember 1.x and will be removed in Ember 3.0'}
|
{handler: 'silence', matchMessage: 'You modified (-join-classes "ember-view" "form-group" (-normalize-class "errorClass" errorClass activeClass=undefined inactiveClass=undefined)) twice in a single render. This was unreliable in Ember 1.x and will be removed in Ember 3.0'}
|
||||||
]
|
]
|
||||||
};
|
};
|
||||||
|
|
Loading…
Add table
Reference in a new issue