pgadmin4/web/regression/javascript/fake_pgadmin.js
2023-01-02 11:53:55 +05:30

37 lines
829 B
JavaScript

/////////////////////////////////////////////////////////////
//
// pgAdmin 4 - PostgreSQL Tools
//
// Copyright (C) 2013 - 2023, The pgAdmin Development Team
// This software is released under the PostgreSQL Licence
//
//////////////////////////////////////////////////////////////
import {messages} from './fake_messages';
const fakePgAdmin = {
Browser: {
messages: messages,
Events: {
on: jasmine.createSpy('on'),
},
get_preferences_for_module: ()=>({}),
docker: {
findPanels: function() {
return [
{
isVisible: function() {
return true;
},
},
];
},
},
onPreferencesChange: ()=>{/*This is intentional (SonarQube)*/},
utils: {
app_version_int: 1234,
},
},
};
export default fakePgAdmin;