mirror of
https://github.com/Kong/insomnia
synced 2024-11-07 22:30:15 +00:00
Update flow type
This commit is contained in:
parent
e805d86c32
commit
0a796451d7
@ -136,5 +136,6 @@ describe('request.*', () => {
|
||||
expect(result.request.getEnvironmentVariable('array_test')).toEqual(['a', 'b']);
|
||||
expect(result.request.getEnvironmentVariable('object_test')).toEqual({a: 'A', b: 'B'});
|
||||
expect(result.request.getEnvironmentVariable('null_test')).toBe(null);
|
||||
expect(result.request.getEnvironmentVariable('bad')).toBeUndefined();
|
||||
});
|
||||
});
|
||||
|
@ -74,7 +74,7 @@ export function init (
|
||||
getEnvironmentVariable (name: string): string | number | boolean | Object | Array<any> | null {
|
||||
return renderedContext[name];
|
||||
},
|
||||
getEnvironment (): string | number | boolean | Object | Array<any> | null {
|
||||
getEnvironment (): Object {
|
||||
return renderedContext;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user