Skip to content

Commit

Permalink
Merge pull request #721 from tchak/fix-deprecations
Browse files Browse the repository at this point in the history
fix deprecations
  • Loading branch information
dgeb committed Dec 29, 2019
2 parents 7a842a7 + 423baf2 commit d9d7bcb
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -986,16 +986,16 @@ module('SchemaConsistencyProcessor', function(hooks) {
planet: {
relationships: {
moons: {
type: 'hasMany',
model: 'moon',
kind: 'hasMany',
type: 'moon',
inverse: 'planet',
dependent: 'remove'
}
}
},
moon: {
relationships: {
planet: { type: 'hasOne', model: 'planet', inverse: 'moons' }
planet: { kind: 'hasOne', type: 'planet', inverse: 'moons' }
}
}
}
Expand Down Expand Up @@ -1075,14 +1075,14 @@ module('SchemaConsistencyProcessor', function(hooks) {
models: {
planet: {
relationships: {
moons: { type: 'hasMany', model: 'moon', inverse: 'planet' }
moons: { kind: 'hasMany', type: 'moon', inverse: 'planet' }
}
},
moon: {
relationships: {
planet: {
type: 'hasOne',
model: 'planet',
kind: 'hasOne',
type: 'planet',
inverse: 'moons',
dependent: 'remove'
}
Expand Down
12 changes: 6 additions & 6 deletions packages/@orbit/record-cache/test/sync-record-cache-test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@ module('SyncRecordCache', function(hooks) {
},
relationships: {
celestialObjects: {
type: 'hasMany',
model: ['planet', 'moon'],
kind: 'hasMany',
type: ['planet', 'moon'],
inverse: 'star'
}
}
Expand All @@ -36,17 +36,17 @@ module('SyncRecordCache', function(hooks) {
remoteId: {}
},
relationships: {
moons: { type: 'hasMany', model: 'moon', inverse: 'planet' },
star: { type: 'hasOne', model: 'star', inverse: 'celestialObjects' }
moons: { kind: 'hasMany', type: 'moon', inverse: 'planet' },
star: { kind: 'hasOne', type: 'star', inverse: 'celestialObjects' }
}
},
moon: {
keys: {
remoteId: {}
},
relationships: {
planet: { type: 'hasOne', model: 'planet', inverse: 'moons' },
star: { type: 'hasOne', model: 'star', inverse: 'celestialObjects' }
planet: { kind: 'hasOne', type: 'planet', inverse: 'moons' },
star: { kind: 'hasOne', type: 'star', inverse: 'celestialObjects' }
}
}
}
Expand Down

0 comments on commit d9d7bcb

Please sign in to comment.