Skip to content

Commit

Permalink
swap “state” for “store” in test names
Browse files Browse the repository at this point in the history
  • Loading branch information
calebmer committed Feb 22, 2017
1 parent 793c59d commit 116f9b0
Showing 1 changed file with 13 additions and 13 deletions.
26 changes: 13 additions & 13 deletions test/ApolloClient.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import ApolloClient from '../src/ApolloClient';

describe('ApolloClient', () => {
describe('readQuery', () => {
it('will read some data from state', () => {
it('will read some data from the store', () => {
const client = new ApolloClient({
initialState: {
apollo: {
Expand All @@ -25,7 +25,7 @@ describe('ApolloClient', () => {
assert.deepEqual(client.readQuery(gql`{ a b c }`), { a: 1, b: 2, c: 3 });
});

it('will read some deeply nested data from state', () => {
it('will read some deeply nested data from the store', () => {
const client = new ApolloClient({
initialState: {
apollo: {
Expand Down Expand Up @@ -74,7 +74,7 @@ describe('ApolloClient', () => {
);
});

it('will read some data from state with variables', () => {
it('will read some data from the store with variables', () => {
const client = new ApolloClient({
initialState: {
apollo: {
Expand Down Expand Up @@ -102,7 +102,7 @@ describe('ApolloClient', () => {
});

describe('readFragment', () => {
it('will read some deeply nested data from state at any id', () => {
it('will read some deeply nested data from the store at any id', () => {
const client = new ApolloClient({
initialState: {
apollo: {
Expand Down Expand Up @@ -196,7 +196,7 @@ describe('ApolloClient', () => {
}, 'Found 3 fragments. `fragmentName` must be provided when there are more then 1 fragments.');
});

it('will read some data from state with variables', () => {
it('will read some data from the store with variables', () => {
const client = new ApolloClient({
initialState: {
apollo: {
Expand Down Expand Up @@ -255,7 +255,7 @@ describe('ApolloClient', () => {
});

describe('writeQuery', () => {
it('will write some data to the state', () => {
it('will write some data to the store', () => {
const client = new ApolloClient();

client.writeQuery({ a: 1 }, gql`{ a }`);
Expand Down Expand Up @@ -287,7 +287,7 @@ describe('ApolloClient', () => {
});
});

it('will write some deeply nested data to state', () => {
it('will write some deeply nested data to the store', () => {
const client = new ApolloClient();

client.writeQuery(
Expand Down Expand Up @@ -370,7 +370,7 @@ describe('ApolloClient', () => {
});
});

it('will write some data to state with variables', () => {
it('will write some data to the store with variables', () => {
const client = new ApolloClient();

client.writeQuery(
Expand Down Expand Up @@ -400,7 +400,7 @@ describe('ApolloClient', () => {
});

describe('writeFragment', () => {
it('will write some deeply nested data into state at any id', () => {
it('will write some deeply nested data into the store at any id', () => {
const client = new ApolloClient({
dataIdFromObject: (o: any) => o.id,
});
Expand Down Expand Up @@ -570,7 +570,7 @@ describe('ApolloClient', () => {
}, 'Found 3 fragments. `fragmentName` must be provided when there are more then 1 fragments.');
});

it('will write some data to state with variables', () => {
it('will write some data to the store with variables', () => {
const client = new ApolloClient();

client.writeFragment(
Expand Down Expand Up @@ -606,7 +606,7 @@ describe('ApolloClient', () => {
return client.store.getState().apollo.optimistic.map((optimistic: any) => optimistic.data);
}

it('will write some data to the state that can be rolled back', () => {
it('will write some data to the store that can be rolled back', () => {
const client = new ApolloClient();

const optimistic1 = client.writeQueryOptimistically({ a: 1 }, gql`{ a }`);
Expand Down Expand Up @@ -687,7 +687,7 @@ describe('ApolloClient', () => {
assert.deepEqual(getOptimisticData(client), []);
});

it('will write some deeply nested data to state and roll it back', () => {
it('will write some deeply nested data to the store and roll it back', () => {
const client = new ApolloClient();

const optimistic1 = client.writeQueryOptimistically(
Expand Down Expand Up @@ -872,7 +872,7 @@ describe('ApolloClient', () => {
return client.store.getState().apollo.optimistic.map((optimistic: any) => optimistic.data);
}

it('will write some deeply nested data into state at any id and roll it back', () => {
it('will write some deeply nested data into the store at any id and roll it back', () => {
const client = new ApolloClient({
dataIdFromObject: (o: any) => o.id,
});
Expand Down

0 comments on commit 116f9b0

Please sign in to comment.