Skip to content

Commit

Permalink
Added unit testing (cont')
Browse files Browse the repository at this point in the history
  • Loading branch information
Anantachai Saothong (Manta) committed Apr 8, 2017
1 parent 1a1f513 commit d387015
Show file tree
Hide file tree
Showing 12 changed files with 72 additions and 0 deletions.
4 changes: 4 additions & 0 deletions spec/option-always-use-import-false/formattingOptions.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"alwaysUseImport": false,
"newLineChar": "\r\n"
}
2 changes: 2 additions & 0 deletions spec/option-always-use-import-false/input.styl
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
@import './path1'
@require './path2'
2 changes: 2 additions & 0 deletions spec/option-always-use-import-false/output.styl
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
@import './path1';
@require './path2';
4 changes: 4 additions & 0 deletions spec/option-always-use-import-true/formattingOptions.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"alwaysUseImport": true,
"newLineChar": "\r\n"
}
2 changes: 2 additions & 0 deletions spec/option-always-use-import-true/input.styl
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
@import './path1'
@require './path2'
2 changes: 2 additions & 0 deletions spec/option-always-use-import-true/output.styl
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
@import './path1';
@import './path2';
4 changes: 4 additions & 0 deletions spec/option-insert-semicolon-true/formattingOptions.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"insertSemicolons": true,
"newLineChar": "\r\n"
}
11 changes: 11 additions & 0 deletions spec/option-insert-semicolon-true/input.styl
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
@namespace 'http://www.w3.org/1999/xhtml'
@import 'path1'

body
display none
var = 1
func() {
return 2
}
foo = 1 + 2
bar = 1 ? 2 : 3
15 changes: 15 additions & 0 deletions spec/option-insert-semicolon-true/output.styl
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
@namespace 'http://www.w3.org/1999/xhtml';
@import 'path1';

body {
display: none;

var = 1;

func() {
return 2;
}

foo = 1 + 2;
bar = 1 ? 2 : 3;
}
4 changes: 4 additions & 0 deletions spec/option-quote-char-double/formattingOptions.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"quoteChar": "\"",
"newLineChar": "\r\n"
}
9 changes: 9 additions & 0 deletions spec/option-quote-char-double/input.styl
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
@import 'path1'

@font-face
src: url('Lucida Grande.ttf')

body
if x is a 'number'
width 'calc(100% - %s)' % x
font: 'Lucida Grande'
13 changes: 13 additions & 0 deletions spec/option-quote-char-double/output.styl
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
@import "path1";

@font-face {
src: url("Lucida Grande.ttf");
}

body {
if (x is a "number") {
width: "calc(100% - %s)" % x;
}

font: "Lucida Grande";
}

0 comments on commit d387015

Please sign in to comment.