File tree Expand file tree Collapse file tree 2 files changed +8
-2
lines changed
Expand file tree Collapse file tree 2 files changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -8,7 +8,8 @@ import Orbit, {
88 RecordOperation ,
99 Record ,
1010 KeyMap ,
11- Schema
11+ Schema ,
12+ TransformBuilder
1213} from '@orbit/data' ;
1314import { QueryResultData } from '@orbit/record-cache' ;
1415import { MemoryCache } from '@orbit/memory' ;
@@ -58,6 +59,10 @@ export default class Cache {
5859 return this . _sourceCache . schema ;
5960 }
6061
62+ get transformBuilder ( ) : TransformBuilder {
63+ return this . _sourceCache . transformBuilder ;
64+ }
65+
6166 /**
6267 * @deprecated
6368 */
Original file line number Diff line number Diff line change @@ -18,9 +18,10 @@ module('Integration - Cache', function(hooks) {
1818 cache = null ;
1919 } ) ;
2020
21- test ( 'exposes keyMap and schema ' , function ( assert ) {
21+ test ( 'exposes properties from underlying MemoryCache ' , function ( assert ) {
2222 assert . strictEqual ( cache . keyMap , store . source . keyMap ) ;
2323 assert . strictEqual ( cache . schema , store . source . schema ) ;
24+ assert . strictEqual ( cache . transformBuilder , store . source . transformBuilder ) ;
2425 } ) ;
2526
2627 test ( 'liveQuery - adds record that becomes a match' , async function ( assert ) {
You can’t perform that action at this time.
0 commit comments