Skip to content
This repository has been archived by the owner on Apr 11, 2024. It is now read-only.

Commit

Permalink
test: Fix Jest localStorage warning, fix invalid hex codes (#61)
Browse files Browse the repository at this point in the history
  • Loading branch information
markdalgleish authored Sep 24, 2018
1 parent a9e3388 commit ed60b44
Show file tree
Hide file tree
Showing 17 changed files with 30 additions and 29 deletions.
3 changes: 2 additions & 1 deletion jest.config.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
const path = require('path');

module.exports = {
setupTestFrameworkScriptFile: path.resolve(__dirname, 'test/_utils/jestSetup.js')
setupTestFrameworkScriptFile: path.resolve(__dirname, 'test/_utils/jestSetup.js'),
testEnvironment: 'node'
};
4 changes: 2 additions & 2 deletions test/config-file-path/__snapshots__/file.test.js.snap
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,10 @@ Object {
"colors": Array [
Object {
"_class": "color",
"alpha": 0,
"alpha": 1,
"blue": 0,
"green": 0,
"red": 0,
"red": 1,
},
Object {
"_class": "color",
Expand Down
2 changes: 1 addition & 1 deletion test/config-file-path/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
<div data-sketch-text="Text 2"><h2>Text 2</h2></div>
<div data-sketch-text="Text 3"><h3>Text 3</h3></div>

<div data-sketch-color="#ff000" class="color red">Color 1</div>
<div data-sketch-color="#ff0000" class="color red">Color 1</div>
<div data-sketch-color="#00ff00" class="color green">Color 2</div>
<div data-sketch-color="#0000ff" class="color blue">Color 3</div>
</body>
Expand Down
4 changes: 2 additions & 2 deletions test/config-file/__snapshots__/file.test.js.snap
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,10 @@ Object {
"colors": Array [
Object {
"_class": "color",
"alpha": 0,
"alpha": 1,
"blue": 0,
"green": 0,
"red": 0,
"red": 1,
},
Object {
"_class": "color",
Expand Down
2 changes: 1 addition & 1 deletion test/config-file/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
<div data-sketch-text="Text 2"><h2>Text 2</h2></div>
<div data-sketch-text="Text 3"><h3>Text 3</h3></div>

<div data-sketch-color="#ff000" class="color red">Color 1</div>
<div data-sketch-color="#ff0000" class="color red">Color 1</div>
<div data-sketch-color="#00ff00" class="color green">Color 2</div>
<div data-sketch-color="#0000ff" class="color blue">Color 3</div>
</body>
Expand Down
4 changes: 2 additions & 2 deletions test/file/__snapshots__/file.test.js.snap
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,10 @@ Object {
"colors": Array [
Object {
"_class": "color",
"alpha": 0,
"alpha": 1,
"blue": 0,
"green": 0,
"red": 0,
"red": 1,
},
Object {
"_class": "color",
Expand Down
2 changes: 1 addition & 1 deletion test/file/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
<div data-sketch-text="Text 2"><h2>Text 2</h2></div>
<div data-sketch-text="Text 3"><h3>Text 3</h3></div>

<div data-sketch-color="#ff000" class="color red">Color 1</div>
<div data-sketch-color="#ff0000" class="color red">Color 1</div>
<div data-sketch-color="#00ff00" class="color green">Color 2</div>
<div data-sketch-color="#0000ff" class="color blue">Color 3</div>
</body>
Expand Down
4 changes: 2 additions & 2 deletions test/serve-with-url/__snapshots__/serve-with-url.test.js.snap
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,10 @@ Object {
"colors": Array [
Object {
"_class": "color",
"alpha": 0,
"alpha": 1,
"blue": 0,
"green": 0,
"red": 0,
"red": 1,
},
Object {
"_class": "color",
Expand Down
2 changes: 1 addition & 1 deletion test/serve-with-url/serve-me/another-url/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
<div data-sketch-text="Text 2"><h2>Text 2</h2></div>
<div data-sketch-text="Text 3"><h3>Text 3</h3></div>

<div data-sketch-color="#ff000" class="color red">Color 1</div>
<div data-sketch-color="#ff0000" class="color red">Color 1</div>
<div data-sketch-color="#00ff00" class="color green">Color 2</div>
<div data-sketch-color="#0000ff" class="color blue">Color 3</div>
</body>
Expand Down
4 changes: 2 additions & 2 deletions test/serve/__snapshots__/serve.test.js.snap
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,10 @@ Object {
"colors": Array [
Object {
"_class": "color",
"alpha": 0,
"alpha": 1,
"blue": 0,
"green": 0,
"red": 0,
"red": 1,
},
Object {
"_class": "color",
Expand Down
2 changes: 1 addition & 1 deletion test/serve/serve-me/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
<div data-sketch-text="Text 2"><h2>Text 2</h2></div>
<div data-sketch-text="Text 3"><h3>Text 3</h3></div>

<div data-sketch-color="#ff000" class="color red">Color 1</div>
<div data-sketch-color="#ff0000" class="color red">Color 1</div>
<div data-sketch-color="#00ff00" class="color green">Color 2</div>
<div data-sketch-color="#0000ff" class="color blue">Color 3</div>
</body>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,10 @@ Object {
"colors": Array [
Object {
"_class": "color",
"alpha": 0,
"alpha": 1,
"blue": 0,
"green": 0,
"red": 0,
"red": 1,
},
Object {
"_class": "color",
Expand Down Expand Up @@ -990,10 +990,10 @@ Object {
"colors": Array [
Object {
"_class": "color",
"alpha": 0,
"alpha": 1,
"blue": 0,
"green": 0,
"red": 0,
"red": 1,
},
Object {
"_class": "color",
Expand Down
2 changes: 1 addition & 1 deletion test/symbol-layer-middleware/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
<div data-sketch-text="Text 2"><h2>Text 2</h2></div>
<div data-sketch-text="Text 3"><h3>Text 3</h3></div>

<div data-sketch-color="#ff000" class="color red">Color 1</div>
<div data-sketch-color="#ff0000" class="color red">Color 1</div>
<div data-sketch-color="#00ff00" class="color green">Color 2</div>
<div data-sketch-color="#0000ff" class="color blue">Color 3</div>
</body>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,10 @@ Object {
"colors": Array [
Object {
"_class": "color",
"alpha": 0,
"alpha": 1,
"blue": 0,
"green": 0,
"red": 0,
"red": 1,
},
Object {
"_class": "color",
Expand Down Expand Up @@ -990,10 +990,10 @@ Object {
"colors": Array [
Object {
"_class": "color",
"alpha": 0,
"alpha": 1,
"blue": 0,
"green": 0,
"red": 0,
"red": 1,
},
Object {
"_class": "color",
Expand Down
2 changes: 1 addition & 1 deletion test/symbol-middleware/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
<div data-sketch-text="Text 2"><h2>Text 2</h2></div>
<div data-sketch-text="Text 3"><h3>Text 3</h3></div>

<div data-sketch-color="#ff000" class="color red">Color 1</div>
<div data-sketch-color="#ff0000" class="color red">Color 1</div>
<div data-sketch-color="#00ff00" class="color green">Color 2</div>
<div data-sketch-color="#0000ff" class="color blue">Color 3</div>
</body>
Expand Down
4 changes: 2 additions & 2 deletions test/url/__snapshots__/url.test.js.snap
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,10 @@ Object {
"colors": Array [
Object {
"_class": "color",
"alpha": 0,
"alpha": 1,
"blue": 0,
"green": 0,
"red": 0,
"red": 1,
},
Object {
"_class": "color",
Expand Down
2 changes: 1 addition & 1 deletion test/url/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
<div data-sketch-text="Text 2"><h2>Text 2</h2></div>
<div data-sketch-text="Text 3"><h3>Text 3</h3></div>

<div data-sketch-color="#ff000" class="color red">Color 1</div>
<div data-sketch-color="#ff0000" class="color red">Color 1</div>
<div data-sketch-color="#00ff00" class="color green">Color 2</div>
<div data-sketch-color="#0000ff" class="color blue">Color 3</div>
</body>
Expand Down

0 comments on commit ed60b44

Please sign in to comment.