Skip to content

Commit

Permalink
fix(output): fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
lgaticaq committed Sep 27, 2017
1 parent 5122084 commit bc20480
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions src/script.js
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ module.exports = robot => {
text += `Aired: ${result.startDate}\n`
text += `Status: ${status}\n`
if (result.episodeCount !== null) {
text += `Eposides: ${result.episodeCount}\n`
text += `Episodes: ${result.episodeCount}\n`
}
if (result.episodeLength !== null) {
text += `Duration: ${result.episodeLength} min\n`
Expand Down Expand Up @@ -127,7 +127,7 @@ module.exports = robot => {
}
if (result.episodeCount !== null) {
options.attachments[0].fields.push({
title: 'Eposides',
title: 'Episodes',
value: result.episodeCount,
short: true
})
Expand Down
8 changes: 4 additions & 4 deletions test/test.js
Original file line number Diff line number Diff line change
Expand Up @@ -221,7 +221,7 @@ describe('hubot-kitsu', function () {
expect(this.postMessage.options.link_names).to.equal(1)
expect(this.postMessage.options.attachments).to.eql([
{
fallback: 'One Piece\n' + 'Gol D. Roger was known as the Pirate King\n' + 'Average Rating: :star2: 3.52\n' + 'Popularity Rank: :heart: 1234\n' + 'Rating Rank: :star: 2345\n' + 'Rating: PG\n' + 'Aired: 2000-01-01\n' + 'Status: Finished Airing\n' + 'Eposides: 25\n' + 'Duration: 24 min\n',
fallback: 'One Piece\n' + 'Gol D. Roger was known as the Pirate King\n' + 'Average Rating: :star2: 3.52\n' + 'Popularity Rank: :heart: 1234\n' + 'Rating Rank: :star: 2345\n' + 'Rating: PG\n' + 'Aired: 2000-01-01\n' + 'Status: Finished Airing\n' + 'Episodes: 25\n' + 'Duration: 24 min\n',
color: '#36a64f',
title: 'One Piece',
title_link: 'https://kitsu.io/anime/one-piece',
Expand Down Expand Up @@ -253,7 +253,7 @@ describe('hubot-kitsu', function () {
value: 'Finished Airing'
}, {
short: true,
title: 'Eposides',
title: 'Episodes',
value: 25
}, {
short: true,
Expand Down Expand Up @@ -293,7 +293,7 @@ describe('hubot-kitsu', function () {
expect(this.postMessage.options.link_names).to.equal(1)
expect(this.postMessage.options.attachments).to.eql([
{
fallback: 'One Piece\n' + 'Gol D. Roger was known as the Pirate King\n' + 'Average Rating: :star2: 3.52\n' + 'Popularity Rank: :heart: 1234\n' + 'Rating Rank: :star: 2345\n' + 'Rating: PG\n' + 'Aired: 2000-01-01\n' + 'Status: Currently Airing\n' + 'Eposides: 25\n' + 'Duration: 24 min\n' + 'Video: https://www.youtube.com/watch?v=um-tFlVamOI',
fallback: 'One Piece\n' + 'Gol D. Roger was known as the Pirate King\n' + 'Average Rating: :star2: 3.52\n' + 'Popularity Rank: :heart: 1234\n' + 'Rating Rank: :star: 2345\n' + 'Rating: PG\n' + 'Aired: 2000-01-01\n' + 'Status: Currently Airing\n' + 'Episodes: 25\n' + 'Duration: 24 min\n' + 'Video: https://www.youtube.com/watch?v=um-tFlVamOI',
color: '#36a64f',
title: 'One Piece',
title_link: 'https://kitsu.io/anime/one-piece',
Expand Down Expand Up @@ -325,7 +325,7 @@ describe('hubot-kitsu', function () {
value: 'Currently Airing'
}, {
short: true,
title: 'Eposides',
title: 'Episodes',
value: 25
}, {
short: true,
Expand Down

0 comments on commit bc20480

Please sign in to comment.