mirror of
https://github.com/Start9Labs/start-os.git
synced 2026-03-30 12:11:56 +00:00
fix pointer issue with mocks, better styles
This commit is contained in:
committed by
Aiden McClelland
parent
c9d77e99af
commit
044c4cc7b2
@@ -1801,41 +1801,6 @@ export module Mock {
|
||||
|
||||
export const MockConfig = realWorldConfigSpec.config
|
||||
|
||||
const testConfig = {
|
||||
testnet: false,
|
||||
'object-list': [
|
||||
{
|
||||
'first-name': 'First',
|
||||
'last-name': 'Last',
|
||||
'age': 30,
|
||||
},
|
||||
{
|
||||
'first-name': 'First2',
|
||||
'last-name': 'Last2',
|
||||
'age': 40,
|
||||
},
|
||||
],
|
||||
'union-list': undefined,
|
||||
'random-enum': 'option1',
|
||||
'favorite-number': null,
|
||||
rpcsettings: {
|
||||
laws: {
|
||||
law1: 'The first law',
|
||||
law2: 'The second law',
|
||||
},
|
||||
rpcpass: null,
|
||||
rpcuser: '123',
|
||||
rulemakers: [],
|
||||
},
|
||||
advanced: {
|
||||
notifications: ['email', 'text'],
|
||||
},
|
||||
'bitcoin-node': undefined,
|
||||
port: 5959,
|
||||
rpcallowip: undefined,
|
||||
rpcauth: ['matt: 8273gr8qwoidm1uid91jeh8y23gdio1kskmwejkdnm'],
|
||||
}
|
||||
|
||||
export const MockDependencyConfig = {
|
||||
testnet: true,
|
||||
'object-list': [
|
||||
@@ -1876,19 +1841,6 @@ export module Mock {
|
||||
rpcauth: ['matt: 8273gr8qwoidm1uid91jeh8y23gdio1kskmwejkdnm'],
|
||||
}
|
||||
|
||||
export const Patch: Operation[] = [
|
||||
{
|
||||
op: 'replace',
|
||||
path: '/testnet',
|
||||
value: true,
|
||||
},
|
||||
{
|
||||
op: 'add',
|
||||
path: '/advanced/notifications/1',
|
||||
value: 'text',
|
||||
},
|
||||
]
|
||||
|
||||
export const bitcoind: PackageDataEntry = {
|
||||
state: PackageState.Installed,
|
||||
'static-files': {
|
||||
|
||||
@@ -663,7 +663,7 @@ export class MockApiService extends ApiService {
|
||||
{
|
||||
op: PatchOp.REPLACE,
|
||||
path: `/package-data/${id}`,
|
||||
value: Mock.LocalPkgs[id],
|
||||
value: { ...Mock.LocalPkgs[id] },
|
||||
},
|
||||
{
|
||||
op: PatchOp.REMOVE,
|
||||
@@ -734,7 +734,6 @@ export class MockApiService extends ApiService {
|
||||
patch,
|
||||
expireId: null,
|
||||
}
|
||||
console.log('REVISION', revision)
|
||||
this.mockPatch$.next(revision)
|
||||
}
|
||||
|
||||
@@ -750,8 +749,6 @@ export class MockApiService extends ApiService {
|
||||
expireId: null,
|
||||
}
|
||||
|
||||
console.log('REVISION', revision)
|
||||
|
||||
return { response, revision }
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user