Skip to content

Commit

Permalink
Fix flow and unit test
Browse files Browse the repository at this point in the history
  • Loading branch information
yuzhi committed Apr 12, 2016
1 parent d460b74 commit 10997c5
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/validation/__tests__/KnownArgumentNames-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ describe('Validate: Known argument names', () => {
dog @skip(unless: true)
}
`, [
unknownDirectiveArg('unless', 'skip', [], 3, 19),
unknownDirectiveArg('unless', 'skip', [ 'if' ], 3, 19),
]);
});

Expand Down
1 change: 1 addition & 0 deletions src/validation/rules/KnownArgumentNames.js
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ export function unknownDirectiveArgMessage(
} else {
message += ' There is no known argument for this directive.';
}
return message;
}

/**
Expand Down
2 changes: 1 addition & 1 deletion src/validation/rules/KnownTypeNames.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ import { suggestionList } from '../../utilities/suggestionList';

export function unknownTypeMessage(
type: GraphQLType,
suggestedTypes: Arrray<string>
suggestedTypes: Array<string>
): string {
let message = `Unknown type "${type}".`;
const MAX_LENGTH = 5;
Expand Down

0 comments on commit 10997c5

Please sign in to comment.