<commit_before>import {
    transformPartitionStatus,
    transformPartitionStatuses,
    transformZoneStatus,
    transformZoneStatuses
} from '../src/util';
import {PartitionConfig, ZoneConfig} from "../src/configTypes";
import {ZoneUpdate} from "../dist/nodeAlarmProxyTypes";
import {ZoneType} from "../dist/types";
import {PartitionUpdate} from "../src/nodeAlarmProxyTypes";
import {PrepareStreamResponse} from "homebridge";


describe('Zone', () => {
    it('Transform Status', () => {
        const zoneConfigs: Map<string, ZoneConfig> = new Map([
            ["1", {"name": "Zone 1", type: "motion", partition: 2} as ZoneConfig]
        ]);
        const zoneUpdate = {
            zone: 1,
            code: "610"
        } as ZoneUpdate;
        const result = transformZoneStatus(zoneConfigs, 1, zoneUpdate);
        expect(result).toBeTruthy();
        expect(result!.number).toEqual(1);<commit_msg>Fix test imports.<commit_after>import {
    transformPartitionStatus,
    transformPartitionStatuses,
    transformZoneStatus,
    transformZoneStatuses
} from '../src/util';
import {PartitionConfig, ZoneConfig} from "../src/configTypes";
import {ZoneUpdate} from "../src/nodeAlarmProxyTypes";
import {ZoneType} from "../src/types";
import {PartitionUpdate} from "../src/nodeAlarmProxyTypes";


describe('Zone', () => {
    it('Transform Status', () => {
        const zoneConfigs: Map<string, ZoneConfig> = new Map([
            ["1", {"name": "Zone 1", type: "motion", partition: 2} as ZoneConfig]
        ]);
        const zoneUpdate = {
            zone: 1,
            code: "610"
        } as ZoneUpdate;
        const result = transformZoneStatus(zoneConfigs, 1, zoneUpdate);
        expect(result).toBeTruthy();
        expect(result!.number).toEqual(1);
{'fraction_non_alphanumeric': 0.14672686230248308, 'fraction_numerical': 0.010158013544018058, 'mean_word_length': 3.181603773584906, 'pattern_counts': {'":': 2, '<': 5, '<?xml version=': 0, '>': 9, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '7203209', 'n_tokens_mistral': 508, 'n_tokens_neox': 489, 'n_words': 121}