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 #241

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

gh-228 move to other file #241

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

Comments

@github-actions
Copy link

github-actions bot commented Mar 5, 2021

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

989afc2cd970995f51c6b78a5b15c7ee833efd24

@github-actions github-actions bot added the todo label Mar 5, 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