Skip to content

Commit

Permalink
update the PR with suggested changes
Browse files Browse the repository at this point in the history
  • Loading branch information
justjais committed Nov 19, 2024
1 parent ca6bfe8 commit 5115e32
Show file tree
Hide file tree
Showing 5 changed files with 280 additions and 80 deletions.
16 changes: 14 additions & 2 deletions ansible_ai_connect_admin_portal/__mocks__/monaco-editor.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,15 @@
module.exports = {
// Stub methods as needed (we should not need any for the Admin Portal)
const editor = {
create: () => {
return {
dispose: () => {},
}
},
defineTheme: function() {}
};

const monaco = {
editor,
languages: {json: {jsonDefaults: { setDiagnosticsOptions: function () {}}}}
};

module.exports = monaco;
5 changes: 5 additions & 0 deletions ansible_ai_connect_admin_portal/__mocks__/monaco-yaml.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
const monacoYaml = {
configureMonacoYaml: function () {}
};

module.exports = monacoYaml;
Loading

0 comments on commit 5115e32

Please sign in to comment.