Interactive Angular 19 demo for @sda/notification-elements-ui with 6 sections: Bell & Feed, Notification Center, Inbox, Comments & Threads, Mention Input, and Full-Featured layout. Includes mock data, dark mode toggle, and real-time event log. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
22 lines
483 B
JavaScript
22 lines
483 B
JavaScript
'use strict';
|
|
|
|
var test = require('tape');
|
|
var parse = require('../').parse;
|
|
|
|
function getEnv() {
|
|
return 'xxx';
|
|
}
|
|
|
|
function getEnvObj() {
|
|
return { op: '@@' };
|
|
}
|
|
|
|
test('functional env expansion', function (t) {
|
|
t.plan(4);
|
|
|
|
t.same(parse('a $XYZ c', getEnv), ['a', 'xxx', 'c']);
|
|
t.same(parse('a $XYZ c', getEnvObj), ['a', { op: '@@' }, 'c']);
|
|
t.same(parse('a${XYZ}c', getEnvObj), ['a', { op: '@@' }, 'c']);
|
|
t.same(parse('"a $XYZ c"', getEnvObj), ['a ', { op: '@@' }, ' c']);
|
|
});
|