@atlassian/bitbucket-server
Version:
Bitbucket Server API client for Browser and Node.js
24 lines (19 loc) • 496 B
JavaScript
const Hook = require('before-after-hook')
const AuthenticationPlugin = require('../')
let apiClient
beforeEach(() => {
apiClient = {
hook: new Hook()
}
})
describe('plugins:authentication', () => {
it('can be instantiated', () => {
expect(new AuthenticationPlugin(apiClient)).toBeInstanceOf(
AuthenticationPlugin
)
})
it('can be injected into core', () => {
new AuthenticationPlugin(apiClient).inject()
expect(apiClient.authenticate).toBeDefined()
})
})