Mariusz Nowak
e1092aff44
refactor: Drop sentry reporting as it's not used
2020-05-07 14:43:04 +02:00
Mariusz Nowak
f6c51796f8
refactor: Convert statusCode to code error parameter
2020-01-21 13:20:02 +01:00
Mariusz Nowak
05ec61844b
Test error message
2019-08-26 14:58:29 +02:00
Mariusz Nowak
418d4e4ae9
Improve multiline message output
2019-08-23 13:50:50 +02:00
Mariusz Nowak
87faf71920
Clear confusing wording
2019-08-06 22:00:03 +02:00
Mariusz Nowak
b3f06b8b1f
Do not duplicate error message output
2019-08-06 14:14:04 +02:00
Mariusz Nowak
18dfb69e31
Improve non-error exception handling
2019-08-06 13:44:10 +02:00
Mariusz Nowak
316c8a86b6
Fix tests
2019-07-19 17:14:27 +02:00
Philipp Muens
084cee4538
Merge pull request #6345 from domcorvasce/master
...
Add SLS_NO_WARNINGS env var
2019-07-16 12:49:39 +02:00
Dom Corvasce
38f42dfb5c
Rename SLS_NO_WARNINGS to SLS_WARNING_DISABLE
2019-07-10 11:52:05 +02:00
Philipp Muens
1d4ef3b2b6
Add tests
2019-07-10 11:10:16 +02:00
Dom Corvasce
508ed78442
Add SLS_NO_WARNINGS to hide warnings
2019-07-08 18:27:16 +02:00
Mariusz Nowak
e11cc2c51b
Ensure to expose non-errors in informative way
2019-06-28 15:19:53 +02:00
Mariusz Nowak
4944f471b1
Prettify
2019-06-26 12:43:01 +02:00
Mariusz Nowak
663f74da68
Fix equality test
2019-06-03 13:56:56 +02:00
Mariusz Nowak
0ddfec479d
Update up to sinon upgrade
2019-06-03 13:37:57 +02:00
Mariusz Nowak
531f4600db
Isolate process.env toggling in tests
2019-05-29 10:15:18 +02:00
Mariusz Nowak
f380063057
Whitespace
2019-05-17 15:04:59 +02:00
Mariusz Nowak
7437950223
Improve process.env vars handling
2019-05-14 13:42:58 +02:00
Mariusz Nowak
d63eb58b4d
Ensure to not pollute process.env
2019-05-14 13:24:10 +02:00
Philipp Muens
3a42f7be49
Remove tests where stubbing props is required
2017-05-30 13:59:40 +02:00
Philipp Muens
756b66a744
Move stubbing of "installed" property to individual test level
2017-05-30 13:51:25 +02:00
Philipp Muens
7af0a37842
Fix typo in comment
2017-05-30 13:28:56 +02:00
Philipp Muens
59e7e57e76
Extend tests to use sinon sandbox and stub process.exit
2017-05-30 13:27:54 +02:00
Philipp Muens
791ca8c139
Disable one line of linting for console.log restoring
2017-05-30 12:40:00 +02:00
Philipp Muens
98cb492a6d
Remove unnecessary eslint disabling
2017-05-30 12:23:18 +02:00
Philipp Muens
0d844849f2
Refactor error tests to spy on console
2017-05-30 12:22:10 +02:00
Philipp Muens
cf8df8f6c4
Refactor test to remove sinon stubbing
2017-05-29 10:27:30 +02:00
Philipp Muens
73c2669661
Fix re-throw error test
2017-05-29 09:38:36 +02:00
davidwells
3d24ed05c7
add note
2017-05-26 17:01:48 -07:00
davidwells
d39a3e8054
update tests
2017-05-26 16:34:44 -07:00
Philipp Muens
96b135b7e7
Remove slightly misleading error message
2017-03-17 11:11:22 +01:00
Erik Erikson
93c7afb3f5
Resolve PR Comments
...
1. Improve wording of documentation. Note the concrete object that will be written in its entirety
2. Expand documentation. Note a potential security risk for secrets
3. Move, without changes, the `warnIfNotFound` method because it was putting space between `getValueFromSource` and the various source type specific functions it uses
4. Implement unit tests for `warnIfNotFound`
5. Implement unit tests for `logWarning`
2017-02-10 18:31:02 -08:00
Andrey Tserkus
ffd6152de0
cover Error with tests; rename SError export to ServerlessError
2017-01-31 01:50:07 -08:00