{"size": 819, "ext": "js", "max_stars_repo_path": "spec/main-spec.js", "max_stars_repo_name": "kevinastone/atom-grammar-test", "max_stars_repo_stars_event_min_datetime": "2016-03-05T11:11:21.000Z", "max_stars_repo_stars_event_max_datetime": "2019-12-16T17:48:52.000Z", "max_issues_repo_path": "spec/main-spec.js", "max_issues_repo_name": "kevinastone/atom-grammar-test", "max_issues_repo_issues_event_min_datetime": "2016-03-02T14:37:10.000Z", "max_issues_repo_issues_event_max_datetime": "2018-12-02T23:17:07.000Z", "max_forks_repo_path": "spec/main-spec.js", "max_forks_repo_name": "kevinastone/atom-grammar-test", "max_forks_repo_forks_event_min_datetime": "2016-02-24T19:14:15.000Z", "max_forks_repo_forks_event_max_datetime": "2016-04-09T15:55:57.000Z"}
{"max_stars_count": 15, "max_issues_count": 19, "max_forks_count": 5, "avg_line_length": 34.125, "max_line_length": 92, "alphanum_fraction": 0.6923076923}
'use babel';

/* eslint-env atomtest */
/* global atom */

import grammarTest from '../lib/main';
import { fixtureFilename } from './utils';


describe('Atom Grammar Test Jasmine', () => {
  beforeEach(() => atom.config.set('core.useTreeSitterParsers', false));

  describe('C Syntax Assertions', () => {
    beforeEach(() => waitsForPromise(() => atom.packages.activatePackage('language-c')));
    grammarTest(fixtureFilename('C/syntax_test_c_example.c'));
    grammarTest(fixtureFilename('C/syntax_test_c_example2.c'));
  });
  describe('HTML Syntax Assertions', () => {
    beforeEach(() => waitsForPromise(() => atom.packages.activatePackage('language-html')));
    grammarTest(fixtureFilename('HTML/syntax_test_html_example.html'));
    grammarTest(fixtureFilename('HTML/syntax_test_html_inline.html'));
  });
});
