Skip to content

Commit b4fef7d

Browse files
committed
test: Seclude runServerless based tests
1 parent 1019e60 commit b4fef7d

1 file changed

Lines changed: 30 additions & 30 deletions

File tree

test/unit/lib/classes/Variables.test.js

Lines changed: 30 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -2741,43 +2741,43 @@ module.exports = {
27412741
expect(logWarningSpy.args[0][0]).to.contain('file');
27422742
});
27432743
});
2744+
});
27442745

2745-
describe('variable syntax', () => {
2746-
let processedConfig = null;
2747-
before(async () => {
2748-
const result = await runServerless({
2749-
fixture: 'variables',
2750-
cliArgs: ['print'],
2751-
});
2752-
processedConfig = result.serverless.service;
2746+
describe('test/unit/lib/classes/Variables.test.js', () => {
2747+
let processedConfig = null;
2748+
before(async () => {
2749+
const result = await runServerless({
2750+
fixture: 'variables',
2751+
cliArgs: ['print'],
27532752
});
2753+
processedConfig = result.serverless.service;
2754+
});
27542755

2755-
it('should support ${file(...)} syntax', () => {
2756-
expect(processedConfig.custom.importedFile).to.deep.equal({
2757-
foo: 'bar',
2758-
});
2756+
it('should support ${file(...)} syntax', () => {
2757+
expect(processedConfig.custom.importedFile).to.deep.equal({
2758+
foo: 'bar',
27592759
});
2760+
});
27602761

2761-
it('should support ${file(...):key} syntax', () => {
2762-
expect(processedConfig.custom.importedFileWithKey).to.equal('bar');
2763-
});
2762+
it('should support ${file(...):key} syntax', () => {
2763+
expect(processedConfig.custom.importedFileWithKey).to.equal('bar');
2764+
});
27642765

2765-
it('should ignore native CloudFormation variables', () => {
2766-
expect(processedConfig.custom.awsVariable).to.equal('${AWS::Region}');
2767-
});
2766+
it('should ignore native CloudFormation variables', () => {
2767+
expect(processedConfig.custom.awsVariable).to.equal('${AWS::Region}');
2768+
});
27682769

2769-
it('should ignore CloudFormation references', () => {
2770-
expect(processedConfig.custom.cloudFormationReference).to.equal('${AnotherResource}');
2771-
});
2770+
it('should ignore CloudFormation references', () => {
2771+
expect(processedConfig.custom.cloudFormationReference).to.equal('${AnotherResource}');
2772+
});
27722773

2773-
it('should support ${self:key} syntax', () => {
2774-
expect(processedConfig.custom.selfReference).to.equal('bar');
2775-
});
2776-
it('should support ${self:} syntax', () => {
2777-
expect(processedConfig.custom.serviceReference).to.equal(processedConfig);
2778-
});
2779-
it('should support nested resolution', () => {
2780-
expect(processedConfig.custom.nestedReference).to.equal('resolvedNested');
2781-
});
2774+
it('should support ${self:key} syntax', () => {
2775+
expect(processedConfig.custom.selfReference).to.equal('bar');
2776+
});
2777+
it('should support ${self:} syntax', () => {
2778+
expect(processedConfig.custom.serviceReference).to.equal(processedConfig);
2779+
});
2780+
it('should support nested resolution', () => {
2781+
expect(processedConfig.custom.nestedReference).to.equal('resolvedNested');
27822782
});
27832783
});

0 commit comments

Comments
 (0)