mirror of
https://github.com/balena-os/balena-supervisor.git
synced 2025-01-18 18:56:24 +00:00
Fix typo: intialise -> initialize
Missing "i" Signed-off-by: Christina Ying Wang <christina@balena.io>
This commit is contained in:
parent
f5ec74211f
commit
fc15ad2554
@ -32,7 +32,7 @@ type ContractRequirements = {
|
||||
|
||||
const contractRequirementVersions: ContractRequirements = {};
|
||||
|
||||
export function intialiseContractRequirements(opts: {
|
||||
export function initializeContractRequirements(opts: {
|
||||
supervisorVersion: string;
|
||||
deviceType: string;
|
||||
l4tVersion?: string;
|
||||
|
@ -8,7 +8,7 @@ import * as v1 from './device-api/v1';
|
||||
import * as v2 from './device-api/v2';
|
||||
import logMonitor from './logging/monitor';
|
||||
|
||||
import { intialiseContractRequirements } from './lib/contracts';
|
||||
import { initializeContractRequirements } from './lib/contracts';
|
||||
import { normaliseLegacyDatabase } from './lib/legacy';
|
||||
import * as osRelease from './lib/os-release';
|
||||
import log from './lib/supervisor-console';
|
||||
@ -42,7 +42,7 @@ export class Supervisor {
|
||||
|
||||
const conf = await config.getMany(startupConfigFields);
|
||||
|
||||
intialiseContractRequirements({
|
||||
initializeContractRequirements({
|
||||
supervisorVersion: version,
|
||||
deviceType: await config.get('deviceType'),
|
||||
l4tVersion: await osRelease.getL4tVersion(),
|
||||
|
@ -8,7 +8,7 @@ import * as deviceState from '~/src/device-state';
|
||||
import { appsJsonBackup, loadTargetFromFile } from '~/src/device-state/preload';
|
||||
import { TargetState } from '~/src/types';
|
||||
import { promises as fs } from 'fs';
|
||||
import { intialiseContractRequirements } from '~/lib/contracts';
|
||||
import { initializeContractRequirements } from '~/lib/contracts';
|
||||
|
||||
import { testfs } from 'mocha-pod';
|
||||
import { createDockerImage } from '~/test-lib/docker-helper';
|
||||
@ -21,7 +21,7 @@ describe('device-state', () => {
|
||||
|
||||
// Set the device uuid
|
||||
await config.set({ uuid: 'local' });
|
||||
intialiseContractRequirements({
|
||||
initializeContractRequirements({
|
||||
supervisorVersion: '11.0.0',
|
||||
deviceType: 'intel-nuc',
|
||||
});
|
||||
|
@ -5,7 +5,7 @@ import * as semver from 'semver';
|
||||
import * as constants from '~/lib/constants';
|
||||
import {
|
||||
containerContractsFulfilled,
|
||||
intialiseContractRequirements,
|
||||
initializeContractRequirements,
|
||||
validateContract,
|
||||
} from '~/lib/contracts';
|
||||
import * as osRelease from '~/lib/os-release';
|
||||
@ -14,7 +14,7 @@ import * as fsUtils from '~/lib/fs-utils';
|
||||
|
||||
describe('lib/contracts', () => {
|
||||
before(() => {
|
||||
intialiseContractRequirements({
|
||||
initializeContractRequirements({
|
||||
supervisorVersion,
|
||||
deviceType: 'intel-nuc',
|
||||
l4tVersion: '32.2',
|
||||
@ -436,7 +436,7 @@ describe('L4T version detection', () => {
|
||||
execStub.restore();
|
||||
}
|
||||
seedExec(version);
|
||||
intialiseContractRequirements({
|
||||
initializeContractRequirements({
|
||||
supervisorVersion,
|
||||
deviceType: 'intel-nuc',
|
||||
l4tVersion: await osRelease.getL4tVersion(),
|
||||
|
Loading…
Reference in New Issue
Block a user