Skip to content

Commit d23e6f8

Browse files
committed
fix(travis): added grunt-cli installation to before-install step
1 parent d742913 commit d23e6f8

3 files changed

Lines changed: 32 additions & 9 deletions

File tree

.travis.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ branches:
1313
node_js:
1414
- iojs
1515
before_install:
16+
- npm i -g grunt-cli
1617
- npm i -g npm@^2.0.0
1718
- npm i -g rollup
1819
before_script:

test/bundle.test.js

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -709,7 +709,7 @@ var Emoji = function () {
709709
return Emoji;
710710
}();
711711

712-
var expect$4 = chai.expect;
712+
var expect$3 = chai.expect;
713713

714714
describe('Emoji Unit test', function () {
715715
var string = 'I am happy :smile:';
@@ -718,14 +718,14 @@ describe('Emoji Unit test', function () {
718718
describe('should pass all tests', function () {
719719
it('should return a string', function () {
720720
var emoji = new Emoji(string, options);
721-
expect$4(emoji.process()).to.be.a('string');
721+
expect$3(emoji.process()).to.be.a('string');
722722
});
723723

724724
it('should convert a emoji text into emoji', function () {
725725
var emoji = new Emoji(string, options);
726726
var emoji2 = new Emoji(string2, options);
727-
expect$4(emoji.process()).to.equal('I am happy <span class="emoticon emoticon-smile" title=":smile:"></span>');
728-
expect$4(emoji2.process()).to.equal('I am happy <span class="emoticon emoticon-smile" title=":smile:"></span> <span class="emoticon emoticon-+1" title=":+1:"></span>');
727+
expect$3(emoji.process()).to.equal('I am happy <span class="emoticon emoticon-smile" title=":smile:"></span>');
728+
expect$3(emoji2.process()).to.equal('I am happy <span class="emoticon emoticon-smile" title=":smile:"></span> <span class="emoticon emoticon-+1" title=":+1:"></span>');
729729
});
730730
});
731731
});
@@ -802,7 +802,7 @@ var Plunker = function (_Base) {
802802
return Plunker;
803803
}(Base);
804804

805-
var expect$3 = chai.expect;
805+
var expect$4 = chai.expect;
806806

807807
describe('Class Plunker => unit test', function () {
808808
it('should return a valid plunked embedding url', function () {
@@ -819,11 +819,11 @@ describe('Class Plunker => unit test', function () {
819819
output = _plunker$process2[0];
820820
embeds = _plunker$process2[1];
821821

822-
expect$3(output).to.be.a('string');
823-
expect$3(embeds).to.be.a('array');
822+
expect$4(output).to.be.a('string');
823+
expect$4(embeds).to.be.a('array');
824824

825-
expect$3(embeds[0].index).to.equal(33);
825+
expect$4(embeds[0].index).to.equal(33);
826826

827-
expect$3(embeds[0].text.replace(/\t|\n/gi, '')).to.equal('<div class="ejs-embed ejs-plunker"><iframe class="ne-plunker" src="http://embed.plnkr.co/nVCmukG5abpi1Y4ZHkrq" height="500"></iframe></div>');
827+
expect$4(embeds[0].text.replace(/\t|\n/gi, '')).to.equal('<div class="ejs-embed ejs-plunker"><iframe class="ne-plunker" src="http://embed.plnkr.co/nVCmukG5abpi1Y4ZHkrq" height="500"></iframe></div>');
828828
});
829829
});
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
import Codepen from '../../../src/js/modules/code/codepen.es6';
2+
import {options, ejs} from '../../options';
3+
let expect = chai.expect;
4+
5+
describe('Class Codepen => unit test', function(){
6+
it('should return a valid plunked embedding url', function(){
7+
8+
let output;
9+
let embeds = [];
10+
let input = output = `Sunt castores desiderium https://plnkr.co/edit/nVCmukG5abpi1Y4ZHkrq?p=preview grandis, pius zetaes.Cur luna persuadere?`;
11+
let codepen = new Codepen(input, output, options, embeds);
12+
[output, embeds] = codepen.process();
13+
14+
expect(output).to.be.a('string');
15+
expect(embeds).to.be.a('array');
16+
17+
expect(embeds[0].index).to.equal(33);
18+
19+
expect(embeds[0].text.replace(/\t|\n/gi,'')).to.equal('<div class="ejs-embed ejs-plunker"><iframe class="ne-plunker" src="http://embed.plnkr.co/nVCmukG5abpi1Y4ZHkrq" height="500"></iframe></div>')
20+
})
21+
});
22+

0 commit comments

Comments
 (0)