Skip to content

Commit

Permalink
fixing usages - 2
Browse files Browse the repository at this point in the history
  • Loading branch information
pgayvallet committed Jul 14, 2023
1 parent 2ee7826 commit 2a17a51
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -15,13 +15,14 @@ import { registerBundleRoutes } from './register_bundle_routes';
import { FileHashCache } from './file_hash_cache';

const createPackageInfo = (parts: Partial<PackageInfo> = {}): PackageInfo => ({
...parts,
buildNum: 42,
buildSha: 'sha',
dist: true,
branch: 'master',
version: '8.0.0',
buildDate: new Date('2023-05-15T23:12:09.000Z'),
buildFlavor: 'traditional',
...parts,
});

const createUiPlugins = (...ids: string[]): UiPlugins => ({
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ export const createPluginInitializerContextMock = (config: unknown = {}) => {
buildSha: 'buildSha',
dist: false,
buildDate: new Date('2023-05-15T23:12:09.000Z'),
buildFlavor: 'traditional',
},
},
logger: loggerMock.create(),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,20 +8,21 @@

import { mockReadFile } from './plugin_manifest_parser.test.mocks';

import { PluginDiscoveryErrorType } from './plugin_discovery_error';

import { resolve } from 'path';
import type { PackageInfo } from '@kbn/config';
import { PluginDiscoveryErrorType } from './plugin_discovery_error';
import { parseManifest } from './plugin_manifest_parser';

const pluginPath = resolve('path', 'existent-dir');
const pluginManifestPath = resolve(pluginPath, 'kibana.json');
const packageInfo = {
const packageInfo: PackageInfo = {
branch: 'master',
buildNum: 1,
buildSha: '',
version: '7.0.0-alpha1',
dist: false,
buildDate: new Date('2023-05-15T23:12:09.000Z'),
buildFlavor: 'traditional',
};

afterEach(() => {
Expand Down

0 comments on commit 2a17a51

Please sign in to comment.