mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
10 lines
433 B
TypeScript
10 lines
433 B
TypeScript
import * as cloudEnv from 'cloud-env';
|
|
|
|
if (cloudEnv.get('IP', '0.0.0.0') !== '0.0.0.0') {
|
|
throw new Error(`cloudEnv.get: expected value 0.0.0.0, but actually received value ${cloudEnv.get('IP', '0.0.0.0')}`);
|
|
}
|
|
|
|
if (!(cloudEnv.defaults instanceof Object)) {
|
|
throw new Error(`cloudEnv.defaults: expected value of defaults be an instance of Object, but it was actually an instance of another class: ${typeof cloudEnv.defaults}`);
|
|
}
|