Skip to content

Commit

Permalink
Fixed some indenting
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisdp committed Jan 16, 2024
1 parent 67ec05a commit bcfd24d
Showing 1 changed file with 25 additions and 23 deletions.
48 changes: 25 additions & 23 deletions bsc-plugin/src/lib/rooibos/MockUtil.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -413,37 +413,39 @@ describe('MockUtil', () => {

it('will skip functions with the disableMocking annotation', async () => {
program.setFile('source/code.bs', `
@disableMocking
namespace beings
function sayHello()
print "hello2"
end function
end namespace
namespace aliens
@disableMocking
function sayHello()
print "hello3"
end function
end namespace
@disableMocking
function sayHello()
print "hello4"
end function
`);
@disableMocking
namespace beings
function sayHello()
print "hello2"
end function
end namespace
namespace aliens
@disableMocking
function sayHello()
print "hello3"
end function
end namespace
@disableMocking
function sayHello()
print "hello4"
end function
`);
program.validate();
expect(program.getDiagnostics()).to.be.empty;
await builder.transpile();
let a = getContents('source/code.brs');
let b = trimLeading(`function beings_sayHello()
print "hello2"
let a = getContents('source/code.brs', false);
let b = undent(`
function beings_sayHello()
print "hello2"
end function
function aliens_sayHello()
print "hello3"
print "hello3"
end function
function sayHello()
print "hello4"
end function`);
print "hello4"
end function
`);
expect(a).to.equal(b);

});
Expand Down

0 comments on commit bcfd24d

Please sign in to comment.