Skip to content

Commit

Permalink
chore: Commit version number, remove snapshot tests (#535)
Browse files Browse the repository at this point in the history
  • Loading branch information
bkeepers committed May 19, 2018
1 parent 6ba287f commit 6139330
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 75 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "probot",
"version": "0.0.0-development",
"version": "6.2.0",
"description": "🤖 A framework for building GitHub Apps to automate and improve your workflow",
"repository": "https://github.com/probot/probot",
"main": "lib/index.js",
Expand Down
72 changes: 0 additions & 72 deletions test/plugins/__snapshots__/default.test.js.snap

This file was deleted.

6 changes: 4 additions & 2 deletions test/plugins/default.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,13 +29,15 @@ describe('default plugin', function () {

it('returns the correct HTML with values', async () => {
const actual = await request(server).get('/probot').expect(200)
expect(actual.text).toMatchSnapshot()
expect(actual.text).toMatch('Welcome to probot')
expect(actual.text).toMatch('A framework for building GitHub Apps')
expect(actual.text).toMatch(/v\d+\.\d+\.\d+/)
})

it('returns the correct HTML without values', async () => {
process.chdir(__dirname)
const actual = await request(server).get('/probot').expect(200)
expect(actual.text).toMatchSnapshot()
expect(actual.text).toMatch('Welcome to your Probot App')
})

afterEach(() => {
Expand Down

0 comments on commit 6139330

Please sign in to comment.