mirror of
https://github.com/serverless/serverless.git
synced 2026-01-18 14:58:43 +00:00
19 lines
414 B
JavaScript
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);
|
|
});
|
|
});
|