23 Commits

Author SHA1 Message Date
Philipp Muens
1d4ef3b2b6 Add tests 2019-07-10 11:10: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