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

gh-228 move to other file #260

Open
github-actions bot opened this issue Mar 14, 2021 · 0 comments
Open

gh-228 move to other file #260

github-actions bot opened this issue Mar 14, 2021 · 0 comments
Labels

Comments

@github-actions
Copy link

gh-228 move to other file

import {ConfmeConfigDiscovery} from './ConfmeConfigDiscovery'
import sinon from 'sinon'

test('calls confme for confs discovery', async (t) => {
  // TODO: gh-228 move to other file

  const definition =  'foo/foo'
  const validation = 'boo/boo'
  const expected = {key1: 'someresult'}
  const confme = sinon.stub().returns(expected)

  const discovery = new ConfmeConfigDiscovery({
    definition,
    validation
  }, {confme})

  const actual = discovery.discover()

  t.true(confme.calledOnce, 'should call confme')
  t.deepEqual(confme.firstCall.args, [definition, validation])
  t.deepEqual(actual, expected)
})
 No newline at end of file
ew file mode 100644
ndex 0000000..e3eed2e
++ b/packages/util-config/lib/confme/ConfmeConfigSchema.mjs

92372346fd7e8ea5a79d21e99c28e9ff8b7fdec8

@github-actions github-actions bot added the todo label Mar 14, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

0 participants