We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e7c3973 commit 74d0d86Copy full SHA for 74d0d86
test/functions/inc.js
@@ -10,10 +10,14 @@ test('increment versions test', (t) => {
10
t.equal(found, wanted, `${cmd} === ${wanted}`)
11
12
const parsed = parse(pre, options)
13
+ const parsedAsInput = parse(pre, options)
14
if (wanted) {
15
parsed.inc(what, id)
16
t.equal(parsed.version, wanted, `${cmd} object version updated`)
17
t.equal(parsed.raw, wanted, `${cmd} object raw field updated`)
18
+
19
+ inc(parsedAsInput, what, options, id)
20
+ t.equal(parsedAsInput.version, pre, `${cmd} didn't modify its input`)
21
} else if (parsed) {
22
t.throws(() => {
23
0 commit comments