|
|
|
@ -120,8 +120,8 @@ describe('validate', () => {
|
|
|
|
}, /Invalid namespace 'foriegn' \(did you mean 'foreign'\?\)/);
|
|
|
|
}, /Invalid namespace 'foriegn' \(did you mean 'foreign'\?\)/);
|
|
|
|
});
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
it('throws an error if \'this\' is bound for foreign element', () => {
|
|
|
|
it('does not throw error if \'this\' is bound for foreign element', () => {
|
|
|
|
assert.throws(() => {
|
|
|
|
assert.doesNotThrow(() => {
|
|
|
|
svelte.compile(`
|
|
|
|
svelte.compile(`
|
|
|
|
<script>
|
|
|
|
<script>
|
|
|
|
let whatever;
|
|
|
|
let whatever;
|
|
|
|
@ -130,6 +130,6 @@ describe('validate', () => {
|
|
|
|
name: 'test',
|
|
|
|
name: 'test',
|
|
|
|
namespace: 'foreign'
|
|
|
|
namespace: 'foreign'
|
|
|
|
});
|
|
|
|
});
|
|
|
|
}, /'this' is not a valid binding/)
|
|
|
|
})
|
|
|
|
})
|
|
|
|
})
|
|
|
|
});
|
|
|
|
});
|
|
|
|
|