Kristjan ESPERANTO
3124b0a9c5
Replace …
with …
( #2973 )
...
I think it is clearer if we don't use the HTML entity.
Co-authored-by: Karsten Hassel <hassel@gmx.de>
2022-12-10 21:50:56 +01:00
Magnus
4d47c0837f
Support HTTP headers with CORS-method ( #2957 )
...
Adds support for sending and receiving HTTP-headers when using the
CORS-method.
This change is required for the Yr weather-provider introduced in
https://github.com/MichMich/MagicMirror/pull/2948 .
To make it easier to add unit tests I moved the server-functions into a
separate file.
2022-10-30 18:14:02 +01:00
Veeck
f79d3f007d
Cleanup jest config ( #2959 )
...
Some small cleanups with regards to jest
- call jest directly (nyc is integrated in jest these days)
- move jest config into seperate file so we dont clutter up the
package.json
- remove empty test file for newsletter-unit-tests
- update dependencies that touch jest
- try out v8 as coverageProvider
Co-authored-by: veeck <michael@veeck.de>
2022-10-28 20:57:08 +02:00
Veeck
c191ff0032
Refactor common weather methods into utils class ( #2958 )
...
Co-authored-by: veeck <michael@veeck.de>
2022-10-28 19:56:55 +02:00
Veeck
2d3940a4ff
Use metric units internally in all weatherproviders ( #2849 )
...
So finally I think this refactorin is ready to be reviewed :-)
DONE:
- [x] Removed all conversion functions for wind and temperature from
specific weatherproviders
- [x] Use internally only metric units: celsius for temperature, meters
per seconds for wind
- [x] Convert temp and wind into the configured units when displaying
data on the UI
- [x] look how beaufort calculation uses metrics, added knots as new
windunit
- [x] add more e2e tests
Checked providers:
- [x] Darksky
- [x] EnvCanada
- [x] OpenWeatherMap
- [x] SMHI provider
- [x] UK Met Office
- [x] UK Met Office DataHub
- [x] WeatherBit
- [x] WeatherFlow
- [x] WeatherGov
TODO in different tickets:
- check weatherproviders for usage of weatherEndpoint (as seen in
https://github.com/MichMich/MagicMirror-Documentation/issues/131 ) -> see
#2926
- cleanup precipations -> #2953
Co-authored-by: veeck <michael@veeck.de>
2022-10-24 19:41:34 +02:00
Karsten Hassel
f04d578704
improve tests ( #2923 )
...
use es6 syntax in all tests, split weather tests, remove callbacks
2022-10-04 10:15:24 +02:00
Karsten Hassel
4cc3e481cc
update dependencies, revert electron to v19
2022-09-05 23:26:04 +02:00
Karsten Hassel
eb32ec89b4
remove old weather modules
2022-01-08 23:08:41 +01:00
Felix Wiedenbach
1751cabb9d
remove obsolete snapshot
2021-10-02 14:56:13 +02:00
Felix Wiedenbach
b094707324
remove mocking from implementation and use jest to mock git cli instead
2021-10-02 14:08:16 +02:00
Karsten Hassel
277055f44e
added tests for updatenotification
2021-09-10 21:12:27 +02:00
Karsten Hassel
eb63745664
update tests in updatenotification_spec.js due to problems after merging PR's
2021-09-09 21:29:28 +02:00
Michael Teeuw
6529eaaf9a
Merge pull request #2650 from rejas/weather
2021-09-09 20:30:37 +02:00
Karsten Hassel
690efc0aff
fix test
2021-09-09 00:48:39 +02:00
Karsten Hassel
dd43f35bbe
add unit tests
2021-09-09 00:03:28 +02:00
rejas
087a472765
Fix tomezone test error as reported by @khassel
2021-09-06 21:15:23 +02:00
rejas
f2bc10c5c0
Add tests for new methods
2021-08-31 23:32:05 +02:00
karsten13
1a244726aa
run prettier
2021-06-11 22:24:21 +02:00
Karsten Hassel
16bbb42b8d
remove chai from unit tests
2021-06-08 00:47:15 +02:00
Karsten Hassel
66759a33fa
unit tests
2021-06-07 00:16:53 +02:00
rejas
fb8bd657de
Move weatherforecast mock data in better suited directory
2021-04-27 13:14:07 +02:00
rejas
d736dd92be
Use es6 notation in tests
2021-04-18 14:51:28 +02:00
rejas
5e6cbeb9ba
Convert some code to es6
2021-03-14 10:40:14 +01:00
Ashish Tank
4966d6c920
Fixed Unit test case error for #2221
2021-01-14 19:10:04 +01:00
Ashish Tank
2c3e8533c7
Issue #2221 - Weather forecast always shows night icons in day time
2021-01-10 16:24:46 +01:00
Jake Mulley
a6386bd60e
Update npm packages and resolve package changes
2020-11-08 21:18:19 +00:00
rejas
8fa858ca8c
Cleanup test descriptions
2020-07-18 22:16:44 +02:00
Michael Teeuw
29ed63286c
Merge pull request #2089 from rejas/newsfeed
...
Cleaned up newsfeed module code
2020-07-17 16:28:44 +02:00
rejas
b9ccb7a892
Add new test to see if coverage improves
...
it does :-)
calendar.js | 8.97 | 9.57 | 11.54 | 8.7 | 63-413,446-659,690-693,699,733-771
->
calendar.js | 9.97 | 10.64 | 11.54 | 9.7 | 63-413,446-659,699,733-771
2020-07-15 13:15:03 +02:00
rejas
8dc88fe64b
Remove unused helper function and its unit test
2020-07-12 10:32:16 +02:00
Veeck
85c32ef843
Use const in test requires
2020-07-09 20:30:43 +02:00
Veeck
abb5dc5739
Run prettier over ALL files once
...
No other changes done in this commit
2020-05-11 22:22:32 +02:00
Veeck
c8a0f1d0de
Fix some more undefs that popped up out of nowhere
2020-05-05 14:54:49 +02:00
rejas
5a4ae99283
Add no-multi-spaces rule to eslint and run it
2020-03-15 15:49:34 +01:00
rejas
702b98f510
Cleanup imports
2019-06-04 10:43:06 +02:00
rejas
69aafd7d6a
Fix missing ; and == and some missing vars
2019-06-04 10:19:25 +02:00
fewieden
d81d7d4f68
compare version unit test
2018-02-15 23:53:57 +01:00
fewieden
fb4d42bf5b
moved test
2018-02-10 12:28:30 +01:00
Michael Teeuw
710ab44073
Merge pull request #1014 from roramirez/tests/unit/weatherforecast
...
Add roundValue unit test function weatherforecast module:
2017-09-07 10:07:28 +02:00
Michael Teeuw
c976242ce5
Merge branch 'develop' into unittests/calendar
2017-08-10 16:27:00 +02:00
Michael Teeuw
de8db1a86d
Merge branch 'develop' into test-unit-js-class
2017-08-10 12:15:23 +02:00
Rodrigo Ramírez Norambuena
739fb99ced
Resolved conflict unit tests between currentweather and newsfeed.
2017-08-06 07:53:03 -04:00
Rodrigo Ramírez Norambuena
8ae947f59c
Merge remote-tracking branch 'origin/round-temp-unit' into doc-roundValue
2017-08-07 20:40:27 -04:00
Rodrigo Ramírez Norambuena
aac4ef05e4
Merge remote-tracking branch 'upstream/develop' into test-unit-js-class
2017-08-05 19:50:34 -04:00
Bas van Wetten
e0414e4eb9
Add unittest for calendar module
...
Add unittest for 'getLocalSpecification' function.
2017-07-31 22:36:14 +02:00
Michael Teeuw
18b61e35be
Merge branch 'develop' into unittest-calendar
2017-07-31 15:04:16 +02:00
Bas van Wetten
35e3b889c3
Add new unit tests
...
Add new unit tests for 'shorten' function in calendar module
2017-07-29 16:02:53 +02:00
Rodrigo Ramírez Norambuena
5ac20cc4cf
SuiteTest: Added unit tests for js/class.js
2017-07-25 21:42:51 -04:00
Rodrigo Ramírez Norambuena
e08bc01c33
Fix conflict with test function newsfeed
2017-07-25 09:32:32 -04:00
Rodrigo Ramírez Norambuena
66b7e3e1f5
Fix lint newsfeed_spec
2017-07-20 00:27:57 -04:00