mirror of
https://github.com/serverless/serverless.git
synced 2025-12-08 19:46:03 +00:00
15 lines
414 B
JavaScript
15 lines
414 B
JavaScript
'use strict';
|
|
|
|
const expect = require('chai').expect;
|
|
const Serverless = require('../../lib/Serverless');
|
|
const semverRegex = require('semver-regex');
|
|
|
|
describe('Serverless', () => {
|
|
describe('#getVersion()', () => {
|
|
it('should get the correct serverless version', () => {
|
|
const serverless = new Serverless();
|
|
expect(semverRegex().test(serverless.getVersion())).to.equal(true);
|
|
});
|
|
});
|
|
});
|