/**
 * Copyright (c) 2015-present, goreutils
 * All rights reserved.
 *
 * This source code is licensed under the MIT-style license found in the
 * LICENSE file in the root directory of this source tree.
 */

"use strict";

/*global describe: false, it: false */

var assert = require("chai").assert,
    path = require("path"),
    ecmaScriptTestFileExtensionsRegExp = require(path.resolve(__dirname, "..", "..", "pckg", "ecmaScriptTestFileExtensionsRegExp"));

describe("pckg/ecmaScriptTestFileExtensionsRegExp", function () {
    it("should match karma files", function () {
        var regExp = ecmaScriptTestFileExtensionsRegExp({}, ".karma");

        assert.ok(regExp.test("foo.karma.jsx"));
    });

    it("should not match fixtures", function () {
        var regExp = ecmaScriptTestFileExtensionsRegExp({}, ".karma");

        assert.notOk(regExp.test("__fixtures__/foo.karma.jsx"));
    });
});

@@ -526,61 +526,8 @@
 ) %7B%0A
-    it(%22should match karma files%22, function () %7B%0A    
     
@@ -582,32 +582,81 @@
 %7B%7D, %22.karma%22);%0A%0A
+    it(%22should match karma files%22, function () %7B%0A
         assert.o
@@ -751,80 +751,8 @@
 ) %7B%0A
-        var regExp = ecmaScriptTestFileExtensionsRegExp(%7B%7D, %22.karma%22);%0A%0A
     

update ecmaScripTestFileExtensionsRegExp to avoid repetition