Skip to content

Commit 2f427d8

Browse files
authored
Merge pull request #401 from nhoizey/upgrades
Dependencies upgrades + presentation improvements
2 parents e0d72e9 + 3af209b commit 2f427d8

File tree

8 files changed

+1025
-2000
lines changed

8 files changed

+1025
-2000
lines changed

__tests__/integration/examples.js

+4-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,10 @@ describe('examples', () => {
1111
const examples = fs.readdirSync(examplesPath)
1212

1313
examples.forEach((exampleName) => {
14-
if (exampleName != 'nicolas-hoizey.com')
14+
if (
15+
fs.statSync(path.join(examplesPath, exampleName)).isDirectory() &&
16+
exampleName != 'nicolas-hoizey.com'
17+
)
1518
it(`${exampleName} example should return the list of perfect width for its image and stats`, async () => {
1619
expect.assertions(1)
1720

examples/nicolas-hoizey.com/run.sh

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
#!/bin/sh
2-
path=`pwd`
3-
node ../../src/cli.js --stats-file ./stats.csv --url "file://${path}/page.html" --selector '.main img[srcset]:first-of-type' --max-viewport 2560 --delay 100 --verbose
2+
path=$(pwd)
3+
node ../../src/cli.js --stats-file ./stats.csv --url "file://${path}/page.html" --selector '.main img[srcset]:first-of-type' --max-viewport 1600 --delay 5 --verbose

examples/simple/run.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
#!/bin/sh
2-
path=`pwd`
2+
path=$(pwd)
33
node ../../src/cli.js --stats-file ./stats.csv --url "file://${path}/page.html" --selector 'img' --verbose

0 commit comments

Comments
 (0)