<commit_before>import { connectivityReducer, DEFAULT_STATE } from "../reducer";
import { ReduxAction } from "../../redux/interfaces";
import { resetNetwork } from "../../devices/actions";
import { values } from "lodash";
describe("Connectivity Reducer - RESET_NETWORK", () => {
  it("clears all network status", () => {
    const action: ReduxAction<{}> = resetNetwork();
    const result = connectivityReducer(DEFAULT_STATE, action);
    values(result).map((x) => expect(x).toBeUndefined());
  });
});<commit_msg>Fix test<commit_after>import { connectivityReducer, DEFAULT_STATE } from "../reducer";
import { ReduxAction } from "../../redux/interfaces";
import { resetNetwork } from "../../devices/actions";

describe("Connectivity Reducer - RESET_NETWORK", () => {
  it("clears all network status", () => {
    const action: ReduxAction<{}> = resetNetwork();
    const result = connectivityReducer(DEFAULT_STATE, action);
    const values: (keyof typeof DEFAULT_STATE)[] = [
      "bot.mqtt",
      "user.mqtt",
      "user.api"
    ];
    values.map((x) => expect(result[x]).toBeUndefined());
  });
});
{'fraction_non_alphanumeric': 0.18552036199095023, 'fraction_numerical': 0.0, 'mean_word_length': 4.144186046511628, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 11, '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': '6718817', 'n_tokens_mistral': 336, 'n_tokens_neox': 326, 'n_words': 73}