Skip to content

Commit

Permalink
remove obsolete tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Rich-Harris committed Mar 19, 2017
1 parent e9f8600 commit b10c59a
Showing 1 changed file with 0 additions and 43 deletions.
43 changes: 0 additions & 43 deletions test/loader.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -145,26 +145,6 @@ describe('loader', function() {

describe('configuration via query', function() {

describe('output + name', function() {

it('should configure CommonJS',
testLoader('test/fixtures/good.html', function(err, code, map) {
expect(err).not.to.exist;
expect(code).to.contain('module.exports = SvelteComponent;');
}, { format: 'cjs' })
);


it('should configure UMD + name',
testLoader('test/fixtures/good.html', function(err, code, map) {
expect(err).not.to.exist;
expect(code).to.contain('(global.FooComponent = factory());');
}, { format: 'umd', name: 'FooComponent' })
);

});


describe('css', function() {

it('should configure css (default)',
Expand All @@ -185,29 +165,6 @@ describe('loader', function() {
});


describe('shared', function() {

it('should configure shared=false (default)',
testLoader('test/fixtures/good.html', function(err, code, map) {
expect(err).not.to.exist;

expect(code).not.to.contain('import {');
expect(code).not.to.contain('} from \'svelte/shared.js\'');
})
);


it('should configure shared=true',
testLoader('test/fixtures/good.html', function(err, code, map) {
expect(err).not.to.exist;

expect(code).to.contain('import {');
expect(code).to.contain('} from "svelte/shared.js"');
}, { shared: true })
);

});

describe('generate', function() {

it('should configure generate=undefined (default)',
Expand Down

0 comments on commit b10c59a

Please sign in to comment.