Skip to content
This repository has been archived by the owner on Jan 11, 2023. It is now read-only.

fix: add missing frameworks to main.js #57

Merged
merged 2 commits into from
Dec 10, 2020
Merged

Conversation

erezrokah
Copy link
Contributor

This adds missing frameworks to main.js and adds a test to verify there are no missing ones

@github-actions github-actions bot added the type: bug code to address defects in shipped code label Dec 10, 2020
@erezrokah erezrokah requested a review from ehmicky December 10, 2020 17:26
@@ -74,3 +81,13 @@ each(FRAMEWORKS, (info, framework) => {
t.is(validate(framework, FRAMEWORK_JSON_SCHEMA), true)
})
})

test('each json file should be required in main.js FRAMEWORKS', async (t) => {
const dir = path.join(__dirname, '..', 'src', 'frameworks')
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[sand] In most cases, using forward slashes work on Windows, because almost all the Node.js API methods (like fs.readdir()) handle. Usually, path.join() only matters when the file path is output to a file or a terminal, or is a binary executed in the terminal. See some write-up on this

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks, fixed in a6084a8

@erezrokah erezrokah merged commit fc0b161 into master Dec 10, 2020
@erezrokah erezrokah deleted the fix/missing_framework branch December 10, 2020 18:14
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
type: bug code to address defects in shipped code
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants