From 6aa0f2523b00228ce42c9b1f827438a32ac4743c Mon Sep 17 00:00:00 2001 From: AIZAWA Hina Date: Sat, 6 Jun 2015 17:28:39 +0900 Subject: [PATCH] tab to space --- test/ansi_up-test.js | 170 +++++++++++++++++++++---------------------- 1 file changed, 85 insertions(+), 85 deletions(-) diff --git a/test/ansi_up-test.js b/test/ansi_up-test.js index 19e9cf2..9c5cd47 100644 --- a/test/ansi_up-test.js +++ b/test/ansi_up-test.js @@ -4,126 +4,126 @@ var should = require('should'); describe('ansi_up', function() { - describe('escape_for_html', function() { + describe('escape_for_html', function() { - describe('ampersands', function() { + describe('ampersands', function() { - it('should escape a single ampersand', function() { - var start = "&"; - var expected = "&"; + it('should escape a single ampersand', function() { + var start = "&"; + var expected = "&"; - var l = ansi_up.escape_for_html(start); - l.should.eql(expected); - }); + var l = ansi_up.escape_for_html(start); + l.should.eql(expected); + }); - it('should escape some text with ampersands', function() { - var start = "abcd&efgh"; - var expected = "abcd&efgh"; + it('should escape some text with ampersands', function() { + var start = "abcd&efgh"; + var expected = "abcd&efgh"; - var l = ansi_up.escape_for_html(start); - l.should.eql(expected); - }); + var l = ansi_up.escape_for_html(start); + l.should.eql(expected); + }); - it('should escape multiple ampersands', function() { - var start = " & & "; - var expected = " & & "; + it('should escape multiple ampersands', function() { + var start = " & & "; + var expected = " & & "; - var l = ansi_up.escape_for_html(start); - l.should.eql(expected); - }); + var l = ansi_up.escape_for_html(start); + l.should.eql(expected); + }); - it('should escape an already escaped ampersand', function() { - var start = " & "; - var expected = " &amp; "; + it('should escape an already escaped ampersand', function() { + var start = " & "; + var expected = " &amp; "; - var l = ansi_up.escape_for_html(start); - l.should.eql(expected); - }); - }); + var l = ansi_up.escape_for_html(start); + l.should.eql(expected); + }); + }); - describe('less-than', function() { + describe('less-than', function() { - it('should escape a single less-than', function() { - var start = "<"; - var expected = "<"; + it('should escape a single less-than', function() { + var start = "<"; + var expected = "<"; - var l = ansi_up.escape_for_html(start); - l.should.eql(expected); - }); + var l = ansi_up.escape_for_html(start); + l.should.eql(expected); + }); - it('should escape some text with less-thans', function() { - var start = "abcdhttp://link.to/me"; + it('should linkify a url', function() { + var start = "http://link.to/me"; + var expected = "http://link.to/me"; - var l = ansi_up.linkify(start); - l.should.eql(expected); - }); + var l = ansi_up.linkify(start); + l.should.eql(expected); + }); - }); + }); - describe('ansi to html', function() { + describe('ansi to html', function() { describe('default colors', function() { it('should transform a foreground to html', function() {