smstools-status-parsed.js 415 Bytes
/* global describe it */

require('should');
const smstoolsStatusParsed = require('../lib/smstools-status-parsed');

describe('#smstool-status-parsed', () => {
    it('should return correct result', async () => {
        const status = await smstoolsStatusParsed('test/data/status');
        status.should.be.ok();

        status.find((line) => line.keyword === 'GSM1').status.should.equal('Blocked');
    });
});