Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
417d105
commit 7a6ff03
Showing
16 changed files
with
4,974 additions
and
3,216 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,3 @@ | ||
/* globals describe */ | ||
|
||
const { test, testRaw } = require('./helpers'); | ||
|
||
describe('camelCase', () => { | ||
|
2 changes: 0 additions & 2 deletions
2
test/customGetLocalIdentTest.js → test/customGetLocalIdent.test.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,3 @@ | ||
/* globals describe */ | ||
|
||
const { testLocals } = require('./helpers'); | ||
|
||
describe('customGetLocalIdent', () => { | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,3 @@ | ||
/* globals describe */ | ||
|
||
const assert = require('assert'); | ||
|
||
const stripAnsi = require('strip-ansi'); | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,3 @@ | ||
/* globals describe */ | ||
|
||
const { testLocals } = require('./helpers'); | ||
|
||
describe('locals', () => { | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,3 @@ | ||
/* globals describe */ | ||
|
||
const path = require('path'); | ||
const fs = require('fs'); | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
const escape = require('../lib/runtime/escape'); | ||
|
||
describe('runtime escape', () => { | ||
it('should escape url', () => { | ||
expect(escape(true)).toBe(true); | ||
expect(escape('image.png')).toBe('image.png'); | ||
expect(escape('"image.png"')).toBe('image.png'); | ||
expect(escape("'image.png'")).toBe('image.png'); | ||
expect(escape('image other.png')).toBe('"image other.png"'); | ||
expect(escape('"image other.png"')).toBe('"image other.png"'); | ||
expect(escape("'image other.png'")).toBe('"image other.png"'); | ||
expect(escape('image"other.png')).toBe('"image\\"other.png"'); | ||
expect(escape('image\nother.png')).toBe('"image\\nother.png"'); | ||
}); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,3 @@ | ||
/* globals describe */ | ||
|
||
const assert = require('assert'); | ||
|
||
const stripAnsi = require('strip-ansi'); | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,3 @@ | ||
/* globals describe */ | ||
|
||
const { testWithMap, testMap } = require('./helpers'); | ||
|
||
describe('source maps', () => { | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,3 @@ | ||
/* globals describe */ | ||
|
||
const { test } = require('./helpers'); | ||
|
||
describe('url', () => { | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters