Skip to content

Commit adfc9c5

Browse files
authored
Merge pull request #438 from MiniGod/update-dependencies
Update dependencies
2 parents 4fc9944 + 8d03a88 commit adfc9c5

File tree

6 files changed

+3211
-1434
lines changed

6 files changed

+3211
-1434
lines changed
Lines changed: 123 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,123 @@
1+
[
2+
{
3+
"AskValue": 1,
4+
"BidValue": 1,
5+
"CustomsRate": 0,
6+
"LastValueChange": 0,
7+
"MainTicker": null,
8+
"MidValue": 1,
9+
"Ticker": "ISK",
10+
"Time": "2017-12-28T11:00:25.857",
11+
"Title": null
12+
},
13+
{
14+
"AskValue": 105.29,
15+
"BidValue": 104.66,
16+
"CustomsRate": 0,
17+
"LastValueChange": -0.094886,
18+
"MainTicker": null,
19+
"MidValue": 104.975,
20+
"Ticker": "USD",
21+
"Time": "2017-12-28T11:00:25.857",
22+
"Title": null
23+
},
24+
{
25+
"AskValue": 141.53,
26+
"BidValue": 140.69,
27+
"CustomsRate": 0,
28+
"LastValueChange": -0.155203,
29+
"MainTicker": null,
30+
"MidValue": 141.11,
31+
"Ticker": "GBP",
32+
"Time": "2017-12-28T11:00:25.857",
33+
"Title": null
34+
},
35+
{
36+
"AskValue": 125.63,
37+
"BidValue": 124.87,
38+
"CustomsRate": 0,
39+
"LastValueChange": -0.158945,
40+
"MainTicker": null,
41+
"MidValue": 125.25,
42+
"Ticker": "EUR",
43+
"Time": "2017-12-28T11:00:25.857",
44+
"Title": null
45+
},
46+
{
47+
"AskValue": 83.472,
48+
"BidValue": 82.973,
49+
"CustomsRate": 0,
50+
"LastValueChange": -0.145943,
51+
"MainTicker": null,
52+
"MidValue": 83.2225,
53+
"Ticker": "CAD",
54+
"Time": "2017-12-28T11:00:25.857",
55+
"Title": null
56+
},
57+
{
58+
"AskValue": 16.873,
59+
"BidValue": 16.772,
60+
"CustomsRate": 0,
61+
"LastValueChange": -0.177483,
62+
"MainTicker": null,
63+
"MidValue": 16.8225,
64+
"Ticker": "DKK",
65+
"Time": "2017-12-28T11:00:25.857",
66+
"Title": null
67+
},
68+
{
69+
"AskValue": 12.742,
70+
"BidValue": 12.666,
71+
"CustomsRate": 0,
72+
"LastValueChange": -0.437568,
73+
"MainTicker": null,
74+
"MidValue": 12.704,
75+
"Ticker": "NOK",
76+
"Time": "2017-12-28T11:00:25.857",
77+
"Title": null
78+
},
79+
{
80+
"AskValue": 12.755,
81+
"BidValue": 12.679,
82+
"CustomsRate": 0,
83+
"LastValueChange": -0.195618,
84+
"MainTicker": null,
85+
"MidValue": 12.717,
86+
"Ticker": "SEK",
87+
"Time": "2017-12-28T11:00:25.857",
88+
"Title": null
89+
},
90+
{
91+
"AskValue": 107.37,
92+
"BidValue": 106.73,
93+
"CustomsRate": 0,
94+
"LastValueChange": -0.111638,
95+
"MainTicker": null,
96+
"MidValue": 107.05,
97+
"Ticker": "CHF",
98+
"Time": "2017-12-28T11:00:25.857",
99+
"Title": null
100+
},
101+
{
102+
"AskValue": 0.9327,
103+
"BidValue": 0.9272,
104+
"CustomsRate": 0,
105+
"LastValueChange": -0.224647,
106+
"MainTicker": null,
107+
"MidValue": 0.92995,
108+
"Ticker": "JPY",
109+
"Time": "2017-12-28T11:00:25.857",
110+
"Title": null
111+
},
112+
{
113+
"AskValue": 149.63,
114+
"BidValue": 148.73,
115+
"CustomsRate": 0,
116+
"LastValueChange": -0.133485,
117+
"MainTicker": null,
118+
"MidValue": 149.18,
119+
"Ticker": "XDR",
120+
"Time": "2017-12-28T11:00:25.857",
121+
"Title": null
122+
}
123+
]

endpoints/currency/tests/integration_test.js

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ describe('currency', () => {
1313
nock('http://www.m5.is')
1414
.get('/')
1515
.query({ gluggi: 'gjaldmidlar' })
16-
.reply(200, fs.readFileSync(`${__dirname}/test.fixture`))
16+
.reply(200, fs.readFileSync(`${__dirname}/m5.fixture`))
1717
})
1818

1919
it('should return an array of objects containing correct fields', (done) => {
@@ -24,6 +24,12 @@ describe('currency', () => {
2424
})
2525

2626
describe('searching using provider "arion"', () => {
27+
before(() => {
28+
nock('https://www.arionbanki.is')
29+
.get('/Webservice/PortalCurrency.ashx')
30+
.reply(200, fs.readFileSync(`${__dirname}/arion.fixture`))
31+
})
32+
2733
it('should return an array of objects containing correct fields', (done) => {
2834
const params = helpers.testRequestParams('/currency/arion')
2935
const resultHandler = helpers.testRequestHandlerForFields(done, fieldsToCheckFor)

mock-data.json

Lines changed: 0 additions & 156 deletions
Original file line numberDiff line numberDiff line change
@@ -2440,162 +2440,6 @@
24402440
"Close"
24412441
]
24422442
},
2443-
{
2444-
"scope": "https://www.arionbanki.is:443",
2445-
"method": "GET",
2446-
"path": "/Webservice/PortalCurrency.ashx",
2447-
"body": "m=GetCurrencies&beginDate=2017-12-28&finalDate=2017-12-28&currencyType=AlmenntGengi&currenciesAvailable=ISK%2CUSD%2CGBP%2CEUR%2CCAD%2CDKK%2CNOK%2CSEK%2CCHF%2CJPY%2CXDR",
2448-
"status": 200,
2449-
"response": [
2450-
{
2451-
"AskValue": 1,
2452-
"BidValue": 1,
2453-
"CustomsRate": 0,
2454-
"LastValueChange": 0,
2455-
"MainTicker": null,
2456-
"MidValue": 1,
2457-
"Ticker": "ISK",
2458-
"Time": "2017-12-28T11:00:25.857",
2459-
"Title": null
2460-
},
2461-
{
2462-
"AskValue": 105.29,
2463-
"BidValue": 104.66,
2464-
"CustomsRate": 0,
2465-
"LastValueChange": -0.094886,
2466-
"MainTicker": null,
2467-
"MidValue": 104.975,
2468-
"Ticker": "USD",
2469-
"Time": "2017-12-28T11:00:25.857",
2470-
"Title": null
2471-
},
2472-
{
2473-
"AskValue": 141.53,
2474-
"BidValue": 140.69,
2475-
"CustomsRate": 0,
2476-
"LastValueChange": -0.155203,
2477-
"MainTicker": null,
2478-
"MidValue": 141.11,
2479-
"Ticker": "GBP",
2480-
"Time": "2017-12-28T11:00:25.857",
2481-
"Title": null
2482-
},
2483-
{
2484-
"AskValue": 125.63,
2485-
"BidValue": 124.87,
2486-
"CustomsRate": 0,
2487-
"LastValueChange": -0.158945,
2488-
"MainTicker": null,
2489-
"MidValue": 125.25,
2490-
"Ticker": "EUR",
2491-
"Time": "2017-12-28T11:00:25.857",
2492-
"Title": null
2493-
},
2494-
{
2495-
"AskValue": 83.472,
2496-
"BidValue": 82.973,
2497-
"CustomsRate": 0,
2498-
"LastValueChange": -0.145943,
2499-
"MainTicker": null,
2500-
"MidValue": 83.2225,
2501-
"Ticker": "CAD",
2502-
"Time": "2017-12-28T11:00:25.857",
2503-
"Title": null
2504-
},
2505-
{
2506-
"AskValue": 16.873,
2507-
"BidValue": 16.772,
2508-
"CustomsRate": 0,
2509-
"LastValueChange": -0.177483,
2510-
"MainTicker": null,
2511-
"MidValue": 16.8225,
2512-
"Ticker": "DKK",
2513-
"Time": "2017-12-28T11:00:25.857",
2514-
"Title": null
2515-
},
2516-
{
2517-
"AskValue": 12.742,
2518-
"BidValue": 12.666,
2519-
"CustomsRate": 0,
2520-
"LastValueChange": -0.437568,
2521-
"MainTicker": null,
2522-
"MidValue": 12.704,
2523-
"Ticker": "NOK",
2524-
"Time": "2017-12-28T11:00:25.857",
2525-
"Title": null
2526-
},
2527-
{
2528-
"AskValue": 12.755,
2529-
"BidValue": 12.679,
2530-
"CustomsRate": 0,
2531-
"LastValueChange": -0.195618,
2532-
"MainTicker": null,
2533-
"MidValue": 12.717,
2534-
"Ticker": "SEK",
2535-
"Time": "2017-12-28T11:00:25.857",
2536-
"Title": null
2537-
},
2538-
{
2539-
"AskValue": 107.37,
2540-
"BidValue": 106.73,
2541-
"CustomsRate": 0,
2542-
"LastValueChange": -0.111638,
2543-
"MainTicker": null,
2544-
"MidValue": 107.05,
2545-
"Ticker": "CHF",
2546-
"Time": "2017-12-28T11:00:25.857",
2547-
"Title": null
2548-
},
2549-
{
2550-
"AskValue": 0.9327,
2551-
"BidValue": 0.9272,
2552-
"CustomsRate": 0,
2553-
"LastValueChange": -0.224647,
2554-
"MainTicker": null,
2555-
"MidValue": 0.92995,
2556-
"Ticker": "JPY",
2557-
"Time": "2017-12-28T11:00:25.857",
2558-
"Title": null
2559-
},
2560-
{
2561-
"AskValue": 149.63,
2562-
"BidValue": 148.73,
2563-
"CustomsRate": 0,
2564-
"LastValueChange": -0.133485,
2565-
"MainTicker": null,
2566-
"MidValue": 149.18,
2567-
"Ticker": "XDR",
2568-
"Time": "2017-12-28T11:00:25.857",
2569-
"Title": null
2570-
}
2571-
],
2572-
"rawHeaders": [
2573-
"Cache-Control",
2574-
"private",
2575-
"Content-Type",
2576-
"application/json; charset=utf-8",
2577-
"Vary",
2578-
"Content-Encoding",
2579-
"Server",
2580-
"Microsoft-IIS/7.5",
2581-
"X-AspNet-Version",
2582-
"4.0.30319",
2583-
"X-Powered-By",
2584-
"ASP.NET",
2585-
"Access-Control-Allow-Origin",
2586-
"*",
2587-
"Access-Control-Allow-Headers",
2588-
"Content-Type,Accept",
2589-
"Access-Control-Allow-Methods",
2590-
"POST",
2591-
"Date",
2592-
"Thu, 28 Dec 2017 11:07:27 GMT",
2593-
"Connection",
2594-
"close",
2595-
"Content-Length",
2596-
"2079"
2597-
]
2598-
},
25992443
{
26002444
"scope": "https://www.landsbankinn.is:443",
26012445
"method": "GET",

0 commit comments

Comments
 (0)