mirror of
https://github.com/Ocelot-Social-Community/Ocelot-Social.git
synced 2025-12-13 07:46:06 +00:00
Fix syntax error
This commit is contained in:
parent
a2f78462d2
commit
119e542e86
@ -230,15 +230,17 @@ Given("we have the following comments in our database:", table => {
|
|||||||
});
|
});
|
||||||
|
|
||||||
Given("we have the following posts in our database:", table => {
|
Given("we have the following posts in our database:", table => {
|
||||||
return new Cypress.Promise((resolve, reject) => {
|
|
||||||
cy.factory().build('category', {
|
cy.factory().build('category', {
|
||||||
id: `cat-456`,
|
id: `cat-456`,
|
||||||
name: "Just For Fun",
|
name: "Just For Fun",
|
||||||
slug: `just-for-fun`,
|
slug: `just-for-fun`,
|
||||||
icon: "smile"
|
icon: "smile"
|
||||||
}).then(categoryJson => {
|
}).then(categoryJson => {
|
||||||
categoryJson.toJson().then(category => resolve(category))
|
return new Cypress.Promise((resolve, _reject) => {
|
||||||
}).then(category => {
|
return categoryJson.toJson().then(category => resolve(category))
|
||||||
|
})
|
||||||
|
})
|
||||||
|
.then(category => {
|
||||||
table.hashes().forEach((attributesOrOptions, i) => {
|
table.hashes().forEach((attributesOrOptions, i) => {
|
||||||
cy.factory().build("post", {
|
cy.factory().build("post", {
|
||||||
...attributesOrOptions,
|
...attributesOrOptions,
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user