first working tests
This commit is contained in:
Родитель
c00a764881
Коммит
2b868e862a
|
@ -0,0 +1,9 @@
|
|||
{
|
||||
"env": {
|
||||
"test": {
|
||||
"plugins": [
|
||||
"@babel/plugin-transform-modules-commonjs"
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
|
@ -0,0 +1,8 @@
|
|||
import {triggerCheck} from '../../src/functions/trigger-check'
|
||||
|
||||
test('checks a message and finds a prefix trigger', async () => {
|
||||
const prefixOnly = true
|
||||
const body = '.deploy'
|
||||
const trigger = '.deploy'
|
||||
expect(await triggerCheck(prefixOnly, body, trigger)).toBe(true)
|
||||
})
|
Загрузка…
Ссылка в новой задаче