Skip to content

Commit

Permalink
Update canary (#834)
Browse files Browse the repository at this point in the history
  • Loading branch information
loweisz committed Jul 2, 2021
1 parent 2e33c27 commit 0c41793
Show file tree
Hide file tree
Showing 33 changed files with 543 additions and 335 deletions.
70 changes: 43 additions & 27 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 5 additions & 5 deletions package.json
Expand Up @@ -46,7 +46,7 @@
"@types/chai-as-promised": "7.1.4",
"@types/cross-spawn": "6.0.2",
"@types/fs-extra": "9.0.11",
"@types/jsdom": "16.2.11",
"@types/jsdom": "16.2.12",
"@types/nanoid": "3.0.0",
"@types/sinon": "^10.0.0",
"@types/sinon-chai": "^3.2.5",
Expand Down Expand Up @@ -81,8 +81,8 @@
"mochawesome-merge": "4.2.0",
"mochawesome-report-generator": "5.2.0",
"nanoid": "3.1.23",
"prettier": "2.2.1",
"rollup": "2.48.0",
"prettier": "2.3.2",
"rollup": "2.52.4",
"rollup-plugin-terser": "7.0.2",
"rollup-plugin-typescript2": "0.30.0",
"semantic-release": "17.4.2",
Expand All @@ -91,7 +91,7 @@
"ts-mocha": "8.0.0",
"ts-node": "10.0.0",
"tslib": "2.3.0",
"typescript": "4.3.4"
"typescript": "4.3.5"
},
"husky": {
"hooks": {
Expand Down Expand Up @@ -150,6 +150,6 @@
]
},
"dependencies": {
"contentful-management": "^7.23.0"
"contentful-management": "^7.27.0"
}
}
5 changes: 3 additions & 2 deletions test/cypress/integration/entry-editor-extension.spec.ts
Expand Up @@ -5,7 +5,8 @@ import {
verifySdkInstanceParameters,
} from '../utils/verify-parameters'
import idsData from './fixtures/ids-data.json'
import contentTypeData from './fixtures/content-type-data/entry-editor-ext.json'
import contentTypeData from './fixtures/content-type-data/entry-editor-ext'
import { removeVariableData } from '../utils/remove-variable-data'

const post = {
id: Cypress.env('entries').entryEditorExtension,
Expand Down Expand Up @@ -61,7 +62,7 @@ context(`Entry editor extension (${role})`, () => {
it('verifies sdk.contentType static methods have expected values', () => {
cy.getSdk(iframeSelector).then((sdk) => {
contentTypeData.sys.environment.sys.id = Cypress.env('activeEnvironmentId')
expect(sdk.contentType).to.deep.equal(contentTypeData)
expect(removeVariableData(sdk.contentType)).to.deep.equal(removeVariableData(contentTypeData))
})
})

Expand Down
5 changes: 3 additions & 2 deletions test/cypress/integration/field-extension.spec.ts
Expand Up @@ -6,8 +6,9 @@ import {
verifySdkInstanceParameters,
} from '../utils/verify-parameters'
import idsData from './fixtures/ids-data.json'
import contentTypeData from './fixtures/content-type-data/field-ext.json'
import contentTypeData from './fixtures/content-type-data/field-ext'
import parameters from './fixtures/parameters.json'
import { removeVariableData } from '../utils/remove-variable-data'

const post = {
id: Cypress.env('entries').fieldExtension,
Expand Down Expand Up @@ -52,7 +53,7 @@ context(`Field extension (${role})`, () => {
it('verifies sdk.contentType static methods have expected values', () => {
cy.getSdk(iframeSelector).then((sdk) => {
contentTypeData.sys.environment.sys.id = Cypress.env('activeEnvironmentId')
expect(sdk.contentType).to.deep.equal(contentTypeData)
expect(removeVariableData(sdk.contentType)).to.deep.equal(removeVariableData(contentTypeData))
})
})

Expand Down

0 comments on commit 0c41793

Please sign in to comment.