-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ETCD3 support #91
ETCD3 support #91
Conversation
0d09bbc
to
8d9bc5c
Compare
@@ -7,11 +7,14 @@ | |||
"clean": "rm -rf .nyc_output coverage lib", | |||
"prepublish": "npm run build", | |||
"build": "babel src --out-dir lib -s --copy-files", | |||
"test": "npm run lint && npm run nyc", | |||
"build:watch": "npm run build -- --watch", | |||
"test": "npm run nyc", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
On ne fait plus de lint dans Travis et dans npm test du coup ? 🤔
package.json
Outdated
"test": "npm run lint && npm run nyc", | ||
"build:watch": "npm run build -- --watch", | ||
"test": "npm run nyc", | ||
"test:dev": "npm run lint && npm run ava", | ||
"lint": "eslint src/ *.js *.json --ext .js,.json", | ||
"lint:fix": "npm run lint -- --fix", | ||
"ava": "NODE_ENV=test ava", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ava est automatiquement lané avec NODE_ENV=test depuis la 0.23. Du coup on peut lancer ava
directement partout sans passer par npm run ava
src/bin/save.js
Outdated
|
||
const client = createEtcd(argz); | ||
const namespacedClient = client.namespace(namespace); | ||
save(namespacedClient, outDir).catch(console.error); // eslint-disable-line no-console |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Si tu veux, on pourrais désactiver cette règle pour le dossier src/bin
src/etcd/test/fetch.js
Outdated
const fetch$ = createFetch$(client); | ||
|
||
await t.notThrows(fetch$.toPromise()); | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Teste peut-être la valeur de retour, qu'on ait bien la valeur qui est resolved
import createStore from '..'; | ||
|
||
test('should get records and indexes', async t => { | ||
const records$ = new Subject(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Rajoute t.plan
src/store/test/index.js
Outdated
t.true(subscription instanceof Subscription); | ||
}); | ||
|
||
// test('should', async t => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
À supprimer
save: false | ||
}); | ||
|
||
t.truthy(client); | ||
t.truthy(squirrel); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Tu close dans le premier test mais pas dans celui-ci. C'est un oubli ?
en attente de microsoft/etcd3#58Drop du support node 6