Skip to content

Commit

Permalink
[structure] Update data aspects mock
Browse files Browse the repository at this point in the history
  • Loading branch information
Thomas Drevon committed May 29, 2019
1 parent cdb23e3 commit 8bd38b4
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions packages/@sanity/structure/test/mocks/dataAspects.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@ module.exports = class AspectsMock {
return this.schema.getTypeNames()
}

getDocumentTypes() {
return this.schema.getTypeNames()
}

getDisplayName(name) {
return this.schema.get(name).title
}
Expand Down

0 comments on commit 8bd38b4

Please sign in to comment.