We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent de490f6 commit d64a444Copy full SHA for d64a444
1 file changed
tests/unit/page.js
@@ -362,6 +362,18 @@ describe('Page class', () => {
362
expect(page.versions['enterprise-server']).toBe('*')
363
})
364
365
+
366
+ describe('platform specific content', () => {
367
+ test('page.defaultPlatform frontmatter', async () => {
368
+ const page = new Page({
369
+ relativePath: 'actions/hosting-your-own-runners/configuring-the-self-hosted-runner-application-as-a-service.md',
370
+ basePath: path.join(__dirname, '../../content'),
371
+ languageCode: 'en'
372
+ })
373
+ expect(page.defaultPlatform).toBeDefined()
374
+ expect(page.defaultPlatform).toBe('linux')
375
376
377
378
379
describe('catches errors thrown in Page class', () => {
0 commit comments