We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ad6c977 commit f087cc2Copy full SHA for f087cc2
test/translate.js
@@ -17,6 +17,10 @@ tape('Version string to Semver translator', function (t) {
17
st.equal(versionToSemver('0.4.20-nightly.2018.2.13+commit.27ef9794.Emscripten.clang'), '0.4.20-nightly.2018.2.13+commit.27ef9794.Emscripten.clang');
18
st.end();
19
});
20
+ t.test('Broken nightly with leading zeroes', function (st) {
21
+ st.equal(versionToSemver('0.4.1-nightly.2016.09.09+commit.79867f49.Emscripten.clang', '0.4.1-nightly.2016.9.9+commit.79867f49.Emscripten.clang');
22
+ st.end();
23
+ });
24
t.test('Old style 0.1.1', function (st) {
25
st.equal(versionToSemver('0.1.1-6ff4cd6b/RelWithDebInfo-Emscripten/clang/int'), '0.1.1+commit.6ff4cd6b');
26
0 commit comments