Skip to content

Commit 561d3bd

Browse files
committed
refactor(builder) Minor formatting of specs
1 parent be9606c commit 561d3bd

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/builder.spec.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,7 @@ describe('builder', () => {
5555
.then(() => api.user.getUsers())
5656
.then(expectOnlyOneApiCall);
5757
});
58+
5859
it('Two read api calls will return the same output', (done) => {
5960
const myConfig = config();
6061
myConfig.user.api.getUsers = sinon.spy(myConfig.user.api.getUsers);
@@ -70,6 +71,7 @@ describe('builder', () => {
7071
.then(() => api.user.getUsers())
7172
.then(expectOnlyOneApiCall);
7273
});
74+
7375
it('1000 calls is not slow', (done) => {
7476
const myConfig = config();
7577
myConfig.user.api.getUsers = sinon.spy(myConfig.user.api.getUsers);
@@ -87,6 +89,7 @@ describe('builder', () => {
8789
}
8890
bc.then(checkTimeConstraint);
8991
});
92+
9093
it('Works with non default id set', (done) => {
9194
const myConfig = config();
9295
myConfig.__config = {idField: 'mySecretId', useProductionBuild: true};
@@ -106,6 +109,7 @@ describe('builder', () => {
106109
.then(() => api.user.getUsers())
107110
.then(expectOnlyOneApiCall);
108111
});
112+
109113
it('Delete removes value from cached array', (done) => {
110114
const myConfig = config();
111115
myConfig.user.api.getUsers = sinon.spy(() => Promise.resolve([{id: 1}, {id: 2}]));
@@ -122,6 +126,7 @@ describe('builder', () => {
122126
.then(() => api.user.getUsers())
123127
.then(expectUserToBeRemoved);
124128
});
129+
125130
it('TTL set to zero means we never get a cache hit', (done) => {
126131
const myConfig = config();
127132
myConfig.user.ttl = 0;

0 commit comments

Comments
 (0)