| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -20,10 +20,10 @@ | |||
| 20 | 20 | "type": [ "string", "object" ] | |
| 21 | 21 | }, | |
| 22 | 22 | "syntax": { | |
| 23 | - "type": "string" | ||
| 23 | + "type": [ "string", "object" ] | ||
| 24 | 24 | }, | |
| 25 | 25 | "stringifier": { | |
| 26 | - "type": "string" | ||
| 26 | + "type": [ "string", "object" ] | ||
| 27 | 27 | }, | |
| 28 | 28 | "sourceMap": { | |
| 29 | 29 | "type": [ "string", "boolean" ] | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -5,7 +5,6 @@ const { loader } = require('./helpers/compilation') | |||
| 5 | 5 | ||
| 6 | 6 | describe('Loader', () => { | |
| 7 | 7 | test('Default', () => { | |
| 8 | - const _ = /style\.(exec\.js|js)$/ | ||
| 9 | 8 | const config = { | |
| 10 | 9 | loader: { | |
| 11 | 10 | options: { | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -1,5 +1,5 @@ | |||
| 1 | 1 | // Jest Snapshot v1, https://goo.gl/fbAQLP | |
| 2 | 2 | ||
| 3 | - exports[`Options Parser - {Function} 1`] = `"module.exports = \\"a {\\\\n color: black\\\\n}\\\\n\\""`; | ||
| 3 | + exports[`Options Parser - {Object} 1`] = `"module.exports = \\"a {\\\\n color: black\\\\n}\\\\n\\""`; | ||
| 4 | 4 | ||
| 5 | 5 | exports[`Options Parser - {String} 1`] = `"module.exports = \\"a {\\\\n color: black\\\\n}\\\\n\\""`; | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -1,3 +1,5 @@ | |||
| 1 | 1 | // Jest Snapshot v1, https://goo.gl/fbAQLP | |
| 2 | 2 | ||
| 3 | + exports[`Options Stringifier - {Object} 1`] = `"module.exports = \\"a color: black\\\\n\\""`; | ||
| 4 | + | ||
| 3 | 5 | exports[`Options Stringifier - {String} 1`] = `"module.exports = \\"a color: black\\\\n\\""`; | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -1,3 +1,5 @@ | |||
| 1 | 1 | // Jest Snapshot v1, https://goo.gl/fbAQLP | |
| 2 | 2 | ||
| 3 | + exports[`Options Syntax - {Object} 1`] = `"module.exports = \\"a\\\\n color: black\\\\n\\""`; | ||
| 4 | + | ||
| 3 | 5 | exports[`Options Syntax - {String} 1`] = `"module.exports = \\"a\\\\n color: black\\\\n\\""`; | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -21,7 +21,7 @@ describe('Options', () => { | |||
| 21 | 21 | }) | |
| 22 | 22 | }) | |
| 23 | 23 | ||
| 24 | - test('Parser - {Function}', () => { | ||
| 24 | + test('Parser - {Object}', () => { | ||
| 25 | 25 | const config = { | |
| 26 | 26 | loader: { | |
| 27 | 27 | options: { | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -20,8 +20,8 @@ describe('Options', () => { | |||
| 20 | 20 | expect(src).toMatchSnapshot() | |
| 21 | 21 | }) | |
| 22 | 22 | }) | |
| 23 | - // TODO fix schema | ||
| 24 | - test.skip('Stringifier - {Function}', () => { | ||
| 23 | + | ||
| 24 | + test('Stringifier - {Object}', () => { | ||
| 25 | 25 | const config = { | |
| 26 | 26 | loader: { | |
| 27 | 27 | options: { | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -20,8 +20,8 @@ describe('Options', () => { | |||
| 20 | 20 | expect(src).toMatchSnapshot() | |
| 21 | 21 | }) | |
| 22 | 22 | }) | |
| 23 | - // TODO fix schema | ||
| 24 | - test.skip('Syntax - {Function}', () => { | ||
| 23 | + | ||
| 24 | + test('Syntax - {Object}', () => { | ||
| 25 | 25 | const config = { | |
| 26 | 26 | loader: { | |
| 27 | 27 | options: { | |
| Back | FazBrowse Home | New Git URL |
0 commit comments