8000 Creates the first test for triggers · supabase/postgres-meta@980d7a7 · GitHub
[go: up one dir, main page]

Skip to content

Commit 980d7a7

Browse files
kiwicopplew3b6x9
authored andcommitted
Creates the first test for triggers
1 parent 1f25d55 commit 980d7a7

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

test/integration/index.spec.js

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -829,3 +829,12 @@ describe('/publications FOR ALL TABLES', () => {
829829
assert.equal(stillExists, false)
830830
})
831831
})
832+
833+
describe('/triggers', () => {
834+
it('GET /triggers', async () => {
835+
const res = await axios.get(`${URL}/triggers`)
836+
const included = res.data.find((x) => `${x.schema}.${x.name}` === 'public.check_update')
837+
assert.strictEqual(res.status, STATUS.SUCCESS)
838+
assert.strictEqual(true, !!included)
839+
})
840+
})

0 commit comments

Comments
 (0)
0