Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit688984e

Browse files
committed
Updated currency/rates
Signed-off-by: Vishal Rana <vr@labstack.com>
1 parente3d9871 commit688984e

File tree

3 files changed

+12
-1
lines changed

3 files changed

+12
-1
lines changed

‎lib/currency.js‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,10 @@ class CurrencyService {
1414
list(request){
1515
returnthis.client._request("GET",`${this.url}/list`);
1616
}
17+
18+
rates(request){
19+
returnthis.client._request("GET",`${this.url}/rates`);
20+
}
1721
}
1822

1923
module.exports={

‎package.json‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name":"labstack",
3-
"version":"1.0.1",
3+
"version":"1.0.2",
44
"description":"Official Node.js client library for the LabStack API",
55
"main":"index.js",
66
"scripts": {

‎test/currency.js‎

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,3 +20,10 @@ test("list", async t => {
2020
t.not(response.currencies.length,"0");
2121
});
2222
});
23+
24+
test("rates",asynct=>{
25+
awaitt.notThrowsAsync(async()=>{
26+
constresponse=awaitcs.rates();
27+
t.not(response.rates.length,"0");
28+
});
29+
});

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp