blob: eb52f9e2da272d2da723aaf3490198661aa5b1fb (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
  | 
local helpers = require('test.functional.helpers')(after_each)
local clear = helpers.clear
local eq = helpers.eq
local environ = helpers.funcs.environ
describe('environ()', function()
  it('handles empty env variable', function()
    clear({env={EMPTY_VAR=""}})
    eq("", environ()['EMPTY_VAR'])
    eq(nil, environ()['DOES_NOT_EXIST'])
  end)
end)
  |