Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
clean up package files, add super basic tests
- Loading branch information
Showing
21 changed files
with
359 additions
and
96 deletions.
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
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,3 +1,4 @@ | ||
node_modules/ | ||
.env | ||
lib/ | ||
lib/ | ||
.nyc_output/ |
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
22 changes: 22 additions & 0 deletions
22
packages/botbuilder-adapter-hangouts/tests/HangoutsAdapter.tests.js
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,22 @@ | ||
const assert = require('assert'); | ||
const { HangoutsAdapter } = require('../'); | ||
|
||
describe('HangoutsAdapter', function() { | ||
|
||
let adapter; | ||
|
||
// beforeEach(function () { | ||
// adapter = new HangoutsAdapter({ | ||
// token: '123', | ||
// }); | ||
// }); | ||
|
||
it('should not construct without required parameters', function () { | ||
assert.throws(function () { let adapter = new HangoutsAdapter({}) }, 'Foo'); | ||
}); | ||
|
||
// it('should create a HangoutsAdapter object', function () { | ||
// assert((adapter instanceof HangoutsAdapter), 'Adapter is wrong type'); | ||
// }); | ||
|
||
}); |
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,3 +1,4 @@ | ||
node_modules/ | ||
.env | ||
lib/ | ||
lib/ | ||
.nyc_output/ |
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
28 changes: 28 additions & 0 deletions
28
packages/botbuilder-adapter-slack/tests/SlackAdapter.tests.js
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,28 @@ | ||
const assert = require('assert'); | ||
const { SlackAdapter } = require('../'); | ||
|
||
describe('SlackAdapter', function() { | ||
|
||
let adapter; | ||
|
||
beforeEach(function () { | ||
adapter = new SlackAdapter({ | ||
clientSigningSecret: '123', | ||
clientId: '123', | ||
clientSecret: '123', | ||
scopes: ['bot'], | ||
redirectUri: 'https://fake.com/install/auth', | ||
getBotUserByTeam: async(team) => '123', | ||
getTokenForTeam: async(team) => '123', | ||
}); | ||
}); | ||
|
||
it('should not construct without required parameters', function () { | ||
assert.throws(function () { let adapter = new SlackAdapter({}) }, 'Foo'); | ||
}); | ||
|
||
it('should create a SlackAdapter object', function () { | ||
assert((adapter instanceof SlackAdapter), 'Adapter is wrong type'); | ||
}); | ||
|
||
}); |
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,3 +1,4 @@ | ||
node_modules/ | ||
.env | ||
lib/ | ||
lib/ | ||
.nyc_output/ |
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
24 changes: 24 additions & 0 deletions
24
packages/botbuilder-adapter-twilio-sms/tests/TwilioAdapter.tests.js
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,24 @@ | ||
const assert = require('assert'); | ||
const { TwilioAdapter } = require('../'); | ||
|
||
describe('TwilioAdapter', function() { | ||
|
||
let adapter; | ||
|
||
beforeEach(function () { | ||
adapter = new TwilioAdapter({ | ||
twilio_number: '14155551212', | ||
account_sid: 'AC123123', | ||
auth_token: '123123', | ||
}); | ||
}); | ||
|
||
it('should not construct without required parameters', function () { | ||
assert.throws(function () { let adapter = new TwilioAdapter({}) }, 'Foo'); | ||
}); | ||
|
||
it('should create a TwilioAdapter object', function () { | ||
assert((adapter instanceof TwilioAdapter), 'Adapter is wrong type'); | ||
}); | ||
|
||
}); |
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,3 +1,4 @@ | ||
node_modules/ | ||
.env | ||
lib/ | ||
lib/ | ||
.nyc_output/ |
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
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,21 @@ | ||
const assert = require('assert'); | ||
const { WebAdapter } = require('../'); | ||
|
||
describe('WebAdapter', function() { | ||
|
||
let adapter; | ||
|
||
beforeEach(function () { | ||
adapter = new WebAdapter({ | ||
}); | ||
}); | ||
|
||
it('should contruct without any parameters (none are required)', function () { | ||
assert.doesNotThrow(function () { let adapter = new WebAdapter({}); }, 'Foo'); | ||
}); | ||
|
||
it('should create a WebAdapter object', function () { | ||
assert((adapter instanceof WebAdapter), 'Adapter is wrong type'); | ||
}); | ||
|
||
}); |
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,3 +1,4 @@ | ||
.nyc_output/ | ||
node_modules/ | ||
.env | ||
lib/ |
Oops, something went wrong.