@@ -1658,7 +1658,7 @@ describe('Normalization tests', () => {
16581658 ) ;
16591659 } ) ;
16601660
1661- test . skip ( 'that an error is returned if a composite type selection does not define a selection set of its own #1.2' , ( ) => {
1661+ test ( 'that an error is returned if a composite type selection does not define a selection set of its own #1.2' , ( ) => {
16621662 const result = normalizeSubgraphFromString (
16631663 `
16641664 type Entity @key(fields: "id email") @key(fields: "id organization { details id }") {
@@ -1683,7 +1683,7 @@ describe('Normalization tests', () => {
16831683 expect ( result . success ) . toBe ( false ) ;
16841684 expect ( result . errors ) . toBeDefined ( ) ;
16851685 expect ( result . errors [ 0 ] ) . toStrictEqual (
1686- invalidKeyDirectivesError ( 'Entity' , [
1686+ invalidDirectiveError ( KEY , 'Entity' , '2nd ', [
16871687 invalidSelectionSetErrorMessage ( 'id organization { details id }' , [ 'Organization.details' ] , 'Details' , OBJECT ) ,
16881688 ] ) ,
16891689 ) ;
@@ -1725,7 +1725,7 @@ describe('Normalization tests', () => {
17251725 ) ;
17261726 } ) ;
17271727
1728- test . skip ( 'that an error is returned if a composite type selection does not define a selection set of its own #2.2' , ( ) => {
1728+ test ( 'that an error is returned if a composite type selection does not define a selection set of its own #2.2' , ( ) => {
17291729 const result = normalizeSubgraphFromString (
17301730 `
17311731 type Entity @key(fields: "id email") @key(fields: "id organization { details uuid }") {
@@ -1750,7 +1750,7 @@ describe('Normalization tests', () => {
17501750 expect ( result . success ) . toBe ( false ) ;
17511751 expect ( result . errors ) . toBeDefined ( ) ;
17521752 expect ( result . errors [ 0 ] ) . toStrictEqual (
1753- invalidKeyDirectivesError ( 'Entity' , [
1753+ invalidDirectiveError ( KEY , 'Entity' , '2nd ', [
17541754 invalidSelectionSetErrorMessage (
17551755 'id organization { details uuid }' ,
17561756 [ 'Organization.details' ] ,
0 commit comments