Skip to content

Commit 4b08c36

Browse files
committed
Tests
1 parent 6103d2d commit 4b08c36

File tree

2 files changed

+4
-8
lines changed

2 files changed

+4
-8
lines changed

package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,6 @@
6161
"babel-plugin-transform-runtime": "6.6.0",
6262
"babel-preset-es2015": "6.6.0",
6363
"chai": "3.5.0",
64-
"chai-string": "1.2.0",
6564
"chai-subset": "1.2.2",
6665
"coveralls": "2.11.9",
6766
"eslint": "2.7.0",

src/validation/__tests__/OverlappingFieldsCanBeMerged-test.js

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -29,10 +29,6 @@ import {
2929
GraphQLString,
3030
GraphQLID,
3131
} from '../../type';
32-
import chai from 'chai';
33-
import chaiString from 'chai-string';
34-
35-
chai.use(chaiString);
3632

3733
describe('Validate: Overlapping fields can be merged', () => {
3834

@@ -761,9 +757,10 @@ describe('Validate: Overlapping fields can be merged', () => {
761757
// The error template should end with a hint for the user to try using
762758
// different aliases.
763759
const error = fieldsConflictMessage('x', 'a and b are different fields');
764-
const hint = 'Use different aliases on the fields to fetch both ' +
765-
'if this was intentional.';
766-
expect(error).to.endsWith(hint);
760+
expect(error).to.equal(
761+
'Fields "x" conflict because a and b are different fields. Use ' +
762+
'different aliases on the fields to fetch both if this was intentional.'
763+
);
767764
});
768765

769766
});

0 commit comments

Comments
 (0)