-
Notifications
You must be signed in to change notification settings - Fork 51
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(webexadapter): add datasource instance property
- Loading branch information
Showing
2 changed files
with
27 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,9 @@ | ||
export default class WebexAdapter {} | ||
export default class WebexAdapter { | ||
/** | ||
* Creates a new instance of the WebexAdapter. | ||
* @param {Object} datasource The primary datasource the adapter will be using. | ||
*/ | ||
constructor(datasource) { | ||
this.datasource = datasource; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
import WebexAdapter from './WebexAdapter'; | ||
|
||
describe('Webex Adapter Interface', () => { | ||
let webexAdapter, datasource; | ||
|
||
beforeEach(() => { | ||
datasource = 'WebexAdapterDataSource'; | ||
webexAdapter = new WebexAdapter(datasource); | ||
}); | ||
|
||
test('WebexAdapter stores the data source', () => { | ||
expect(webexAdapter.datasource).toBe(datasource); | ||
}); | ||
|
||
afterEach(() => { | ||
webexAdapter = null; | ||
}); | ||
}); |