This repository has been archived by the owner on Nov 25, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 23
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #57 from doktordirk/chore-test
Chore build test
- Loading branch information
Showing
8 changed files
with
92 additions
and
49 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,81 @@ | ||
import { | ||
configure, | ||
DefaultRepository, | ||
Repository, | ||
Entity, | ||
OrmMetadata, | ||
EntityManager, | ||
association, | ||
resource, | ||
endpoint, | ||
name, | ||
repository, | ||
validation, | ||
type, | ||
validatedResource | ||
} from '../src/aurelia-orm'; | ||
import {Container} from 'aurelia-dependency-injection'; | ||
|
||
describe('aurelia-orm', function() { | ||
describe('export', function() { | ||
it('Should export configure', function() { | ||
expect(configure).toBeDefined(); | ||
}); | ||
|
||
it('Should export DefaultRepository', function() { | ||
expect(DefaultRepository).toBeDefined(); | ||
}); | ||
|
||
it('Should export Repository', function() { | ||
expect(Repository).toBeDefined(); | ||
}); | ||
|
||
it('Should export Entity', function() { | ||
expect(Entity).toBeDefined(); | ||
}); | ||
|
||
it('Should export OrmMetadata', function() { | ||
expect(OrmMetadata).toBeDefined(); | ||
}); | ||
|
||
it('Should export association', function() { | ||
expect(association).toBeDefined(); | ||
}); | ||
|
||
it('Should export resource', function() { | ||
expect(resource).toBeDefined(); | ||
}); | ||
|
||
it('Should export endpoint', function() { | ||
expect(endpoint).toBeDefined(); | ||
}); | ||
|
||
it('Should export name', function() { | ||
expect(name).toBeDefined(); | ||
}); | ||
|
||
it('Should export repository', function() { | ||
expect(repository).toBeDefined(); | ||
}); | ||
|
||
it('Should export validation', function() { | ||
expect(validation).toBeDefined(); | ||
}); | ||
|
||
it('Should export type', function() { | ||
expect(type).toBeDefined(); | ||
}); | ||
|
||
it('Should export validatedResource', function() { | ||
expect(validatedResource).toBeDefined(); | ||
}); | ||
}); | ||
|
||
it('Should export a configure method which returns the entityManager', function() { | ||
expect(typeof configure).toEqual('function'); | ||
|
||
configure({container: new Container(), globalResources: function() {}}, function(entityManager) { | ||
expect(entityManager instanceof EntityManager).toBe(true); | ||
}); | ||
}); | ||
}); |