-
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(clang-forma-node): add new API aliases
clangFormatNodePath
and…
… `getClangFormatNodePath` (#83) * chore: update `package.json`'s `bin` * wip: update `clangFormatPath.js` * wip: update `clangFormatPath.test.js` * wip: update `getClangFormatPath.js` * wip: update `getClangFormatPath.test.js` * wip: update `index.js` * wip: update `index.test.js`
- Loading branch information
1 parent
610ac74
commit 7ad27e5
Showing
8 changed files
with
53 additions
and
7 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,12 @@ | ||
const { clangFormatPath } = require('./utils/clangFormatPath'); | ||
const { getClangFormatPath } = require('./utils/getClangFormatPath'); | ||
const { clangFormatPath, clangFormatNodePath } = require('./utils/clangFormatPath'); | ||
const { | ||
getClangFormatPath, | ||
getClangFormatNodePath, | ||
} = require('./utils/getClangFormatPath'); | ||
|
||
module.exports = { | ||
clangFormatPath, | ||
clangFormatNodePath, | ||
getClangFormatPath, | ||
getClangFormatNodePath, | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,24 @@ | ||
const { ok } = require('node:assert'); | ||
const { describe, it } = require('node:test'); | ||
|
||
const { clangFormatPath, getClangFormatPath } = require('./index'); | ||
const { | ||
clangFormatPath, | ||
clangFormatNodePath, | ||
getClangFormatPath, | ||
getClangFormatNodePath, | ||
} = require('./index'); | ||
|
||
describe('index ok testing', () => { | ||
it('clangFormatPath should be imported correctly', () => { | ||
ok(clangFormatPath); | ||
}); | ||
it('clangFormatNodePath should be imported correctly', () => { | ||
ok(clangFormatNodePath); | ||
}); | ||
it('getClangFormatPath should be imported correctly', () => { | ||
ok(getClangFormatPath); | ||
}); | ||
it('getClangFormatNodePath should be imported correctly', () => { | ||
ok(getClangFormatNodePath); | ||
}); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters