Add revision tests
Add tests to the revision code.
$ pnpm run test
> svekyll-cli@0.0.74 test /home/chrisdawson/Projects/ExtraStatic/svekyll-cli
> OVERRIDE_PACKAGE_JSON=./package.json mocha tests/*.js
#revisions
Running inside /run/user/1000/tmp-166485-1xyh7LGQZacw
Diffs undefined
✔ should only retrieve diffs once they hit master (188ms)
Running inside /run/user/1000/tmp-166485-9zXWwwfG9UAo
Diff list [
'0a5e2ee -- (HEAD -> main) -- Mon Jul 31 10:27:50 2023 -0400 -- good2',
'ac3ed7a -- -- Mon Jul 31 10:27:50 2023 -0400 -- good',
'c15f7ed -- (not_main) -- Mon Jul 31 10:27:50 2023 -0400 -- bad2',
'569c700 -- -- Mon Jul 31 10:27:50 2023 -0400 -- bad'
]
✔ should only retrieve diffs once they hit master (176ms)
2 passing (368ms)