Skip to content

Commit

Permalink
cspell: cleanup custom words list (#324)
Browse files Browse the repository at this point in the history
  • Loading branch information
IvanGoncharov committed May 28, 2021
1 parent e33b9ab commit b4cb206
Show file tree
Hide file tree
Showing 8 changed files with 10 additions and 20 deletions.
10 changes: 0 additions & 10 deletions cspell.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,20 +16,12 @@
],
"words": [
"arrayconnection",
"connectiontypes",
"rederives",
"refetchability",
"refetches",
"unbase",
"unbased",

// Different words used inside tests

"millenium",
"corellian",
"bwing",
"xwing",
"ywing",
"dschafer",
"leebyron",
"schrockn",
Expand All @@ -42,8 +34,6 @@
"Xljb",

// TODO: contribute upstream
"codecov",
"downlevel",
"transpilation",

// TODO: remove below words
Expand Down
4 changes: 2 additions & 2 deletions src/__tests__/starWarsConnection-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ describe('Star Wars connections', () => {
},
{
cursor: 'YXJyYXljb25uZWN0aW9uOjM=',
node: { name: 'Millenium Falcon' },
node: { name: 'Millennium Falcon' },
},
{
cursor: 'YXJyYXljb25uZWN0aW9uOjQ=',
Expand Down Expand Up @@ -196,7 +196,7 @@ describe('Star Wars connections', () => {
node: { name: 'A-Wing' },
},
{
node: { name: 'Millenium Falcon' },
node: { name: 'Millennium Falcon' },
},
{
node: { name: 'Home One' },
Expand Down
2 changes: 1 addition & 1 deletion src/__tests__/starWarsData.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ const allShips: Array<Ship> = [

// Yeah, technically it's Corellian. But it flew in the service of the rebels,
// so for the purposes of this demo it's a rebel ship.
{ id: '4', name: 'Millenium Falcon' },
{ id: '4', name: 'Millennium Falcon' },
{ id: '5', name: 'Home One' },
{ id: '6', name: 'TIE Fighter' },
{ id: '7', name: 'TIE Interceptor' },
Expand Down
6 changes: 3 additions & 3 deletions src/__tests__/starWarsObjectIdentification-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ describe('Star Wars object identification', () => {
});
});

it('refetches the rebels', () => {
it('fetches the rebels by global ID', () => {
const source = `
{
node(id: "RmFjdGlvbjox") {
Expand Down Expand Up @@ -64,7 +64,7 @@ describe('Star Wars object identification', () => {
});
});

it('refetches the empire', () => {
it('fetches the empire by global ID', () => {
const source = `
{
node(id: "RmFjdGlvbjoy") {
Expand All @@ -83,7 +83,7 @@ describe('Star Wars object identification', () => {
});
});

it('refetches the X-Wing', () => {
it('fetches the X-Wing by global ID', () => {
const source = `
{
node(id: "U2hpcDox") {
Expand Down
2 changes: 1 addition & 1 deletion src/connection/arrayConnection.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ export function connectionFromPromisedArraySlice<T>(
export function offsetToCursor(offset: number): ConnectionCursor;

/**
* Rederives the offset from the cursor string.
* Extracts the offset from the cursor string.
*/
export function cursorToOffset(cursor: ConnectionCursor): number;

Expand Down
2 changes: 1 addition & 1 deletion src/connection/arrayConnection.js
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ export function offsetToCursor(offset: number): ConnectionCursor {
}

/**
* Rederives the offset from the cursor string.
* Extracts the offset from the cursor string.
*/
export function cursorToOffset(cursor: ConnectionCursor): number {
return parseInt(unbase64(cursor).substring(PREFIX.length), 10);
Expand Down
2 changes: 1 addition & 1 deletion src/node/__tests__/global-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ describe('global ID fields', () => {
});
});

it('refetches the IDs', () => {
it('allows to refetch the IDs', () => {
const source = `
{
user: node(id: "VXNlcjox") {
Expand Down
2 changes: 1 addition & 1 deletion src/node/__tests__/node-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ const schema = new GraphQLSchema({
});

describe('Node interface and fields', () => {
describe('refetchability', () => {
describe('Ability to refetch', () => {
it('gets the correct ID for users', () => {
const source = `
{
Expand Down

0 comments on commit b4cb206

Please sign in to comment.