We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c97cf75 commit 7b92f01Copy full SHA for 7b92f01
src/components/commands/index.js
@@ -0,0 +1,13 @@
1
+function get(msg) {
2
+ const cmds = {
3
+ "!invite": 'https://discord.gg/kYBtYPj',
4
+ "!azurePipelines": 'https://azure.microsoft.com/pt-br/services/devops/pipelines/',
5
+ "!youtube": 'https://youtube.com/collabcode',
6
+ };
7
+
8
+ return cmds[msg];
9
+}
10
11
+export default {
12
+ get
13
test/index.js
@@ -0,0 +1,9 @@
+import commands from '../src/components/commands'
+describe('#Commands', () => {
+ describe('get()', () => {
+ it('should return discord link when send !invite', () => {
+ expect(commands.get('!invite')).toEqual('https://discord.gg/kYBtYPj')
+ })
+})
0 commit comments