mirror of
https://github.com/primer/css.git
synced 2024-09-11 16:36:07 +03:00
Add 2 test categories
This commit is contained in:
parent
67df8bb292
commit
a4a52c615a
2
.github/workflows/ci.yml
vendored
2
.github/workflows/ci.yml
vendored
@ -1,5 +1,5 @@
|
||||
name: CI
|
||||
on: [push]
|
||||
on: [push, pull_request]
|
||||
jobs:
|
||||
stylelint:
|
||||
runs-on: ubuntu-latest
|
||||
|
7
__tests__/css.test.js
Normal file
7
__tests__/css.test.js
Normal file
@ -0,0 +1,7 @@
|
||||
const fs = require('fs')
|
||||
|
||||
describe('css imports', () => {
|
||||
it('all files are imported somewhere', () => {
|
||||
|
||||
})
|
||||
})
|
18
__tests__/docs.test.js
Normal file
18
__tests__/docs.test.js
Normal file
@ -0,0 +1,18 @@
|
||||
const fs = require('fs')
|
||||
const yaml = require('js-yaml')
|
||||
|
||||
let nav
|
||||
|
||||
beforeAll(() => {
|
||||
nav = yaml.load(fs.readFileSync('./docs/src/@primer/gatsby-theme-doctocat/nav.yml', 'utf8'))
|
||||
})
|
||||
|
||||
describe('frontmatter', () => {
|
||||
|
||||
})
|
||||
|
||||
describe('navigation', () => {
|
||||
it('has a file for each nav item', () => {
|
||||
|
||||
})
|
||||
})
|
@ -59,6 +59,7 @@
|
||||
"gh-pages": "^1.0.0",
|
||||
"globby": "^6.1.0",
|
||||
"jest": "26.6.3",
|
||||
"js-yaml": "4.0.0",
|
||||
"minimist": "1.2.3",
|
||||
"node-fetch": "2.6.1",
|
||||
"postcss": "7.0.32",
|
||||
|
12
yarn.lock
12
yarn.lock
@ -3239,6 +3239,11 @@ argparse@^1.0.7:
|
||||
dependencies:
|
||||
sprintf-js "~1.0.2"
|
||||
|
||||
argparse@^2.0.1:
|
||||
version "2.0.1"
|
||||
resolved "https://registry.yarnpkg.com/argparse/-/argparse-2.0.1.tgz#246f50f3ca78a3240f6c997e8a9bd1eac49e4b38"
|
||||
integrity sha512-8+9WqebbFzpX9OR+Wa6O29asIogeRMzcGtAINdpMHHyAg10f05aSFVBbcEqGf/PXw1EjAZ+q2/bEBg3DvurK3Q==
|
||||
|
||||
aria-query@^4.2.2:
|
||||
version "4.2.2"
|
||||
resolved "https://registry.yarnpkg.com/aria-query/-/aria-query-4.2.2.tgz#0d2ca6c9aceb56b8977e9fed6aed7e15bbd2f83b"
|
||||
@ -8826,6 +8831,13 @@ js-tokens@^3.0.2:
|
||||
resolved "https://registry.npmjs.org/js-tokens/-/js-tokens-3.0.2.tgz"
|
||||
integrity sha1-mGbfOVECEw449/mWvOtlRDIJwls=
|
||||
|
||||
js-yaml@4.0.0:
|
||||
version "4.0.0"
|
||||
resolved "https://registry.yarnpkg.com/js-yaml/-/js-yaml-4.0.0.tgz#f426bc0ff4b4051926cd588c71113183409a121f"
|
||||
integrity sha512-pqon0s+4ScYUvX30wxQi3PogGFAlUyH0awepWvwkj4jD4v+ova3RiYw8bmA6x2rDrEaj8i/oWKoRxpVNW+Re8Q==
|
||||
dependencies:
|
||||
argparse "^2.0.1"
|
||||
|
||||
js-yaml@^3.13.0, js-yaml@^3.13.1, js-yaml@^3.6.1:
|
||||
version "3.13.1"
|
||||
resolved "https://registry.npmjs.org/js-yaml/-/js-yaml-3.13.1.tgz"
|
||||
|
Loading…
Reference in New Issue
Block a user