mirror of
https://github.com/fluencelabs/examples
synced 2025-04-25 10:42:16 +00:00
just work already
This commit is contained in:
parent
2d6ea386d8
commit
8dc050b1d1
@ -0,0 +1,8 @@
|
||||
module.exports = {
|
||||
semi: true,
|
||||
trailingComma: 'all',
|
||||
singleQuote: true,
|
||||
printWidth: 120,
|
||||
tabWidth: 4,
|
||||
useTabs: false,
|
||||
};
|
@ -7,7 +7,24 @@ describe('smoke test', () => {
|
||||
|
||||
await main(krasnodar);
|
||||
|
||||
expect(console.log).toBeCalledTimes(0);
|
||||
// TODO::
|
||||
});
|
||||
expect(console.log).toBeCalledTimes(16);
|
||||
expect(console.log).toHaveBeenNthCalledWith(
|
||||
13,
|
||||
'📗 uploaded file:',
|
||||
expect.objectContaining({
|
||||
path: 'NZgK6DB.png',
|
||||
size: expect.any(Number),
|
||||
cid: expect.anything(),
|
||||
}),
|
||||
);
|
||||
expect(console.log).toHaveBeenNthCalledWith(
|
||||
15,
|
||||
'📗 File size is saved to IPFS:',
|
||||
expect.objectContaining({
|
||||
error: '',
|
||||
hash: expect.any(String),
|
||||
success: true,
|
||||
}),
|
||||
);
|
||||
}, 20000);
|
||||
});
|
||||
|
@ -58,6 +58,8 @@ export async function main(environment: Node[]) {
|
||||
);
|
||||
service_id = fromOption(service_id);
|
||||
if (service_id === null) {
|
||||
await Fluence.stop();
|
||||
await providerClient.stop();
|
||||
return;
|
||||
}
|
||||
|
||||
@ -83,7 +85,9 @@ export async function main(environment: Node[]) {
|
||||
|
||||
let result = await remove_service(serviceHost.peerId, service_id);
|
||||
console.log('📗 ProcessFiles service removed', result);
|
||||
return;
|
||||
|
||||
await Fluence.stop();
|
||||
await providerClient.stop();
|
||||
}
|
||||
|
||||
function fromOption<T>(opt: T | T[] | null): T | null {
|
||||
|
5799
aqua-examples/aqua-ipfs-integration/package-lock.json
generated
5799
aqua-examples/aqua-ipfs-integration/package-lock.json
generated
File diff suppressed because it is too large
Load Diff
3919
aqua-examples/price-oracle/web/package-lock.json
generated
3919
aqua-examples/price-oracle/web/package-lock.json
generated
File diff suppressed because it is too large
Load Diff
10559
quickstart/1-browser-to-browser/package-lock.json
generated
10559
quickstart/1-browser-to-browser/package-lock.json
generated
File diff suppressed because it is too large
Load Diff
10086
quickstart/3-browser-to-service/package-lock.json
generated
10086
quickstart/3-browser-to-service/package-lock.json
generated
File diff suppressed because it is too large
Load Diff
Loading…
x
Reference in New Issue
Block a user