Skip to content
This repository has been archived by the owner on Aug 6, 2020. It is now read-only.

Commit

Permalink
Removed init.ts file, load specs from specrunner.ts directly
Browse files Browse the repository at this point in the history
Removed init.ts and rewrote specrunner.ts load specs directly. There was
no need to do it through init.ts.
  • Loading branch information
egil committed Mar 6, 2013
1 parent 08bd0be commit 52cdc7c
Show file tree
Hide file tree
Showing 7 changed files with 10 additions and 49 deletions.
9 changes: 0 additions & 9 deletions TypeScript-RequireJs-Jasmine.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -75,9 +75,6 @@
<Content Include="src\project\demo.js">
<DependentUpon>demo.ts</DependentUpon>
</Content>
<Content Include="src\spec\init.js">
<DependentUpon>init.ts</DependentUpon>
</Content>
<TypeScriptCompile Include="src\project\demo.ts" />
<Content Include="src\specrunner.js">
<DependentUpon>specrunner.ts</DependentUpon>
Expand All @@ -87,7 +84,6 @@
<DependentUpon>demo.spec.ts</DependentUpon>
</Content>
<TypeScriptCompile Include="src\spec\demo.spec.ts" />
<Content Include="src\spec\init.ts" />
</ItemGroup>
<ItemGroup>
<Content Include="src\libs\jasmine-1.3.1\MIT.LICENSE" />
Expand All @@ -107,11 +103,6 @@
<DependentUpon>demo.spec.ts</DependentUpon>
</Content>
</ItemGroup>
<ItemGroup>
<Content Include="src\spec\init.js.map">
<DependentUpon>init.ts</DependentUpon>
</Content>
</ItemGroup>
<ItemGroup>
<Content Include="src\main.js.map">
<DependentUpon>main.ts</DependentUpon>
Expand Down
20 changes: 0 additions & 20 deletions src/spec/init.js

This file was deleted.

1 change: 0 additions & 1 deletion src/spec/init.js.map

This file was deleted.

13 changes: 0 additions & 13 deletions src/spec/init.ts

This file was deleted.

8 changes: 5 additions & 3 deletions src/specrunner.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion src/specrunner.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 4 additions & 2 deletions src/specrunner.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,9 @@ require.config({
baseUrl: 'src'
});

require(['spec/init'], (specs) => {
require(['spec/demo.spec'], () => {
var jasmineEnv = jasmine.getEnv();
specs.uvis.spec.init(jasmineEnv);
jasmineEnv.execute();
}, (err) => {
console.error('Unable to load some or all of the requires specs. Error message = ' + err);
});

0 comments on commit 52cdc7c

Please sign in to comment.