{"size": 718, "ext": "js", "max_stars_repo_path": "src/components/vue-hangman.test.js", "max_stars_repo_name": "xerocross/vue-hangman", "max_stars_repo_stars_event_min_datetime": "2019-08-28T09:40:49.000Z", "max_stars_repo_stars_event_max_datetime": "2019-08-28T09:40:49.000Z", "max_issues_repo_path": "src/components/vue-hangman.test.js", "max_issues_repo_name": "xerocross/vue-hangman", "max_issues_repo_issues_event_min_datetime": "2020-09-04T22:21:03.000Z", "max_issues_repo_issues_event_max_datetime": "2022-02-26T11:06:50.000Z", "max_forks_repo_path": "src/components/vue-hangman.test.js", "max_forks_repo_name": "xerocross/vue-hangman", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": 1, "max_issues_count": 6, "max_forks_count": null, "avg_line_length": 22.4375, "max_line_length": 54, "alphanum_fraction": 0.5515320334}
import {mount, createLocalVue} from '@vue/test-utils';
import VueHangman from "./vue-hangman.vue";
import Vuex from 'vuex';

let store;
let localVue;


beforeAll(()=> {
    localVue = createLocalVue()
    localVue.use(Vuex)
    localVue.directive('ayncWorking',{});
    localVue.directive('messageToggle',{});
});

beforeEach(()=> {
    store = new Vuex.Store({
        state : {
            revealedPhrase : ["A","_","B","_","C"],
            guessedLettersSet : [],
            availableLetters : ["A", "B"],
            isWon : false,
            isLost : false
        }
    });
});

test("the component mounts", function() {
    expect(()=>{
        mount(VueHangman, {localVue, store});
    }).not.toThrow();
});