Skip to content

Commit

Permalink
chore: doc & lint
Browse files Browse the repository at this point in the history
  • Loading branch information
nytamin committed Nov 4, 2022
1 parent 823e4a0 commit e361108
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 9 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -502,6 +502,7 @@ _Note: All of the properties inside of `gddPlayoutOptions` are optional._
/**
* This property contains an array of the supported resolutions of the GFX Template.
* The array must contain at least one resolution.
* This can be used by the client to determine whether a template is compatible with the current renderer or not.
* Examples:
* * A template which only supports a fixed resolution and framerate:
* "resolutions": [{ "width": 1280, "height": 720, "framerate": 50 }]
Expand Down
2 changes: 0 additions & 2 deletions lib/unit-tests/__tests__/lib/validator.ts
Original file line number Diff line number Diff line change
Expand Up @@ -113,8 +113,6 @@ async function getJSON(filePath: string): Promise<any> {
if (e.message) e.message = e.message + ' ' + filePath
throw e
}


} else {
return null
}
Expand Down
14 changes: 7 additions & 7 deletions lib/unit-tests/__tests__/playout-options.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ test('gddPlayoutOptions.render', async () => {
properties: {},
gddPlayoutOptions: {
render: {
resolutions: [] // empty is not allowed
resolutions: [], // empty is not allowed
},
},
})
Expand All @@ -136,7 +136,7 @@ test('gddPlayoutOptions.render', async () => {
properties: {},
gddPlayoutOptions: {
render: {
resolutions: [ { width: 123 } ]
resolutions: [{ width: 123 }],
},
},
})
Expand All @@ -147,7 +147,7 @@ test('gddPlayoutOptions.render', async () => {
properties: {},
gddPlayoutOptions: {
render: {
resolutions: [ { width: "123" } ] // bad type
resolutions: [{ width: '123' }], // bad type
},
},
})
Expand All @@ -158,7 +158,7 @@ test('gddPlayoutOptions.render', async () => {
properties: {},
gddPlayoutOptions: {
render: {
resolutions: [ { width: { min: 100, max: 9999 } } ]
resolutions: [{ width: { min: 100, max: 9999 } }],
},
},
})
Expand All @@ -169,7 +169,7 @@ test('gddPlayoutOptions.render', async () => {
properties: {},
gddPlayoutOptions: {
render: {
resolutions: [ { width: { max: "two" } } ] // bad type
resolutions: [{ width: { max: 'two' } }], // bad type
},
},
})
Expand All @@ -180,7 +180,7 @@ test('gddPlayoutOptions.render', async () => {
properties: {},
gddPlayoutOptions: {
render: {
resolutions: [ { width: { max: 9000 }, height: 500, framerate: 50 } ]
resolutions: [{ width: { max: 9000 }, height: 500, framerate: 50 }],
},
},
})
Expand All @@ -191,7 +191,7 @@ test('gddPlayoutOptions.render', async () => {
properties: {},
gddPlayoutOptions: {
render: {
resolutions: [ { width: { max: 9000 }, height: 500, framerate: "50" } ] // bad type
resolutions: [{ width: { max: 9000 }, height: 500, framerate: '50' }], // bad type
},
},
})
Expand Down

0 comments on commit e361108

Please sign in to comment.