Skip to content

Commit

Permalink
Merge pull request #232 from open-rpc/fix/refactor-to-hooks
Browse files Browse the repository at this point in the history
fix: refactor to hooks
  • Loading branch information
shanejonas authored Jul 3, 2019
2 parents b5ee42f + b9982cd commit 02e0d79
Show file tree
Hide file tree
Showing 26 changed files with 1,937 additions and 2,350 deletions.
5 changes: 3 additions & 2 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,8 @@ jobs:
- restore_cache: *restore-deps-cache
- run: npm install
- run: npm run build
- run: npx semantic-release
- run: npm install semantic-release @semantic-release/changelog @semantic-release/git @semantic-release/github @semantic-release/commit-analyzer @semantic-release/release-notes-generator @qiwi/semantic-release-gh-pages-plugin
- run: ./node_modules/.bin/semantic-release
- save_cache: *save-deps-cache

workflows:
Expand All @@ -86,4 +87,4 @@ workflows:
- release:
filters: *filter-only-master
requires:
- hold
- hold
51 changes: 49 additions & 2 deletions __mocks__/monaco-editor.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,56 @@
const MonacoEditorMock = {
class Selection {
//
};

const monaco = {
addAction() {

},
getModels() {
return []
},
Uri: {
parse(f) {
return f;
}
},
KeyCode: {},
KeyMod: {
chord() {

}
},
get editor() {
return this;
},
languages: {
json: {
jsonDefaults: {
setDiagnosticsOptions() {
}
}
}
},
setSelection() {

},
focus() {

},
Selection,
onDidChangeModelContent() {

},
setModel() {

},
createModel() {
return {
updateOptions() {

}
}
},
create() {
return this;
},
Expand All @@ -13,4 +60,4 @@ const MonacoEditorMock = {
}
};

export default MonacoEditorMock;
module.exports = monaco;
Loading

0 comments on commit 02e0d79

Please sign in to comment.