File tree Expand file tree Collapse file tree 1 file changed +0
-46
lines changed
packages/graphql/tests/integration/array-methods Expand file tree Collapse file tree 1 file changed +0
-46
lines changed Original file line number Diff line number Diff line change @@ -77,52 +77,6 @@ describe("array-pop-errors", () => {
7777 expect ( gqlResult . data ) . toBeNull ( ) ;
7878 } ) ;
7979
80- test ( "should throw an error when trying to pop an element from multiple non-existing arrays" , async ( ) => {
81- const typeMovie = testHelper . createUniqueType ( "Movie" ) ;
82-
83- const typeDefs = gql `
84- type ${ typeMovie } @node {
85- title: String
86- tags: [String!]
87- otherTags: [String!]
88- }
89- ` ;
90-
91- await testHelper . initNeo4jGraphQL ( { typeDefs } ) ;
92-
93- const movieTitle = generate ( {
94- charset : "alphabetic" ,
95- } ) ;
96-
97- const update = `
98- mutation {
99- ${ typeMovie . operations . update } (update: { tags_POP: 1, otherTags_POP: 1 }) {
100- ${ typeMovie . plural } {
101- title
102- tags
103- otherTags
104- }
105- }
106- }
107- ` ;
108-
109- // Created deliberately without the tags or otherTags properties.
110- const cypher = `
111- CREATE (m:${ typeMovie } {title:$movieTitle})
112- ` ;
113-
114- await testHelper . executeCypher ( cypher , { movieTitle } ) ;
115-
116- const gqlResult = await testHelper . executeGraphQL ( update ) ;
117-
118- expect ( gqlResult . errors ) . toBeDefined ( ) ;
119- expect (
120- ( gqlResult . errors as GraphQLError [ ] ) . some ( ( el ) => el . message . includes ( "Property tags cannot be NULL" ) )
121- ) . toBeTruthy ( ) ;
122-
123- expect ( gqlResult . data ) . toBeNull ( ) ;
124- } ) ;
125-
12680 test ( "should throw an error if not authenticated on field definition" , async ( ) => {
12781 const typeMovie = testHelper . createUniqueType ( "Movie" ) ;
12882 const typeDefs = `
You can’t perform that action at this time.
0 commit comments