Commit 4368b6966e75dc09d979f49383a0840be099a316
1 parent
e02146d472
Exists in
master
parsesn
Showing 2 changed files with 14 additions and 1 deletions Side-by-side Diff
httppulsakita.js
test.js
... | ... | @@ -32,7 +32,7 @@ describe('aaa', function() { |
32 | 32 | }); |
33 | 33 | }); |
34 | 34 | |
35 | -describe('aaa', function() { | |
35 | +describe('httppulsakita', function() { | |
36 | 36 | var partner = require('./httppulsakita'); |
37 | 37 | |
38 | 38 | describe("#parseResult()", function() { |
... | ... | @@ -46,4 +46,16 @@ Sisa saldo Rp. 5,000,000 - Rp. 18,700 = Rp. 4,981,300</pesan></respon>'; |
46 | 46 | assert.equal('2015/6/16 15:43:35', data.respon.tanggal); |
47 | 47 | }); |
48 | 48 | }); |
49 | + | |
50 | + /* | |
51 | + describe("parseSN()", function() { | |
52 | + | |
53 | + message = "#14837 XR5 ke:081809903333 SUKSES. Isi pulsa XR5 berhasil untuk nomor 6281809903333 sebesar 5.000, refnum B93D0792A47841AE03B0000000000000 pada tgl 16/06/15 15:47. \ | |
54 | +Sisa saldo Rp. 4,981,300 - Rp. 5,250 = Rp. 4,976,050"; | |
55 | + it ('should return B93D0792A47841AE03B0000000000000', function() { | |
56 | + assert.equal('B93D0792A47841AE03B0000000000000', parseSN(message)); | |
57 | + }); | |
58 | + | |
59 | + }); | |
60 | + */ | |
49 | 61 | }); |