import assert from "assert";

import NpmUtilities from "../src/NpmUtilities";

describe("NpmUtilities", () => {
  it("should exist", () => {
    assert.ok(NpmUtilities);
  });
});

@@ -168,13 +168,618 @@
 );%0A  %7D);
+%0A%0A  describe(%22.splitVersion()%22, () =%3E %7B%0A    %5B%0A      %5B%22foo%22, %5B%22foo%22, undefined%5D, %22no version%22%5D,%0A      %5B%22foo@1.0.0%22, %5B%22foo%22, %221.0.0%22%5D, %22exact version%22%5D,%0A      %5B%22foo@%5E1.0.0%22, %5B%22foo%22, %22%5E1.0.0%22%5D, %22caret range%22%5D,%0A      %5B%22@foo/bar%22, %5B%22@foo/bar%22, undefined%5D, %22scoped with no version%22%5D,%0A      %5B%22@foo/bar@1.0.0%22,  %5B%22@foo/bar%22, %221.0.0%22%5D, %22scoped with exact version%22%5D,%0A      %5B%22@foo/bar@%5E1.0.0%22, %5B%22@foo/bar%22, %22%5E1.0.0%22%5D, %22scoped with caret range%22%5D,%0A    %5D.forEach((%5Bhave, want, desc%5D) =%3E %7B%0A      it(%22should handle %22 + desc, () =%3E %7B%0A        assert.deepEqual(NpmUtilities.splitVersion(have), want);%0A      %7D);%0A    %7D);%0A  %7D);
 %0A%7D);%0A

Add tests for NpmUtilities.splitVersion