Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add tests for getString() and getDictionary() #57

Open
helenmasters opened this issue Mar 21, 2019 · 1 comment
Open

Add tests for getString() and getDictionary() #57

helenmasters opened this issue Mar 21, 2019 · 1 comment

Comments

@helenmasters
Copy link
Contributor

There are currently no tests for either cloudEnv.getDictionary(name: String) or cloudEnv.getString(name: String) we should add these in.

@petershaw
Copy link

Maybe this is why it does not work for me?

this is my .config:

{
    "PORT": 8090,
    "cmsurl": "http://localhost:8080",
    "cms": {
        "foo": 1
    }
}

Changing the port works beautiful, but

        let dict = cloudEnv.getDictionary(name: "cms")
        dump(dict)
        print( cloudEnv.getString(name: "cmsurl") )

turns out as:

- nil
nil

am I doing in wrong, or is it broken?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants