Skip to content

added Mongolian Tugrik#51

Open
The-White-Fang wants to merge 2 commits into
paul-shuvo:masterfrom
The-White-Fang:MNT-currency
Open

added Mongolian Tugrik#51
The-White-Fang wants to merge 2 commits into
paul-shuvo:masterfrom
The-White-Fang:MNT-currency

Conversation

@The-White-Fang

Copy link
Copy Markdown

No description provided.

@paul-shuvo

Copy link
Copy Markdown
Owner

Could you add a test for MNT in the test file like the following:

    describe("rates", () =>  {
        it("should not return undefined values", () => {
            currencyConverter.from("USD").to("JPY")
            return expect(currencyConverter.rates()).to.eventually.not.equal(undefined)
        })

        it("should not return undefined values for CF", () => {
            currencyConverter.from("CF").to("JPY")
            return expect(currencyConverter.rates()).to.eventually.not.equal(undefined)
        })

        it("should not return undefined values for CHF", () => {
            currencyConverter.from("USD").to("CHF")
            return expect(currencyConverter.rates()).to.eventually.not.equal(undefined)
        })

        it("should not return undefined values for KMF", () => {
            currencyConverter.from("KMF").to("USD")
            return expect(currencyConverter.rates()).to.eventually.not.equal(undefined)
        })

        it("should not return undefined values when isDecimalComma is true", () => {
            currencyConverter.from("USD").to("JPY").setDecimalComma(true)
            return expect(currencyConverter.rates()).to.eventually.not.equal(undefined)
        })
    })

@The-White-Fang

Copy link
Copy Markdown
Author

Will do.

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

Successfully merging this pull request may close these issues.

2 participants