serverless/lib/utils/selectors/selectServicePublish.test.js
Philipp Muens 9ffde98f28 Add tests
2017-07-19 10:39:54 +02:00

19 lines
414 B
JavaScript

'use strict';
const expect = require('chai').expect;
const selectServicePublish = require('./selectServicePublish');
describe('#selectServicePublish()', () => {
it('should return the publish value of the service object', () => {
const service = {
serviceObject: {
publish: true,
},
};
const result = selectServicePublish(service);
expect(result).to.equal(true);
});
});