mirror of
https://github.com/cheminfo/netcdfjs.git
synced 2026-01-18 15:56:16 +00:00
15 lines
315 B
JavaScript
Executable File
15 lines
315 B
JavaScript
Executable File
'use strict';
|
|
|
|
const NetCDFReader = require('..');
|
|
|
|
const fs = require('fs');
|
|
|
|
const pathFiles = `${__dirname}/files/`;
|
|
|
|
test('getAttribute', function () {
|
|
const data = fs.readFileSync(`${pathFiles}P071.CDF`);
|
|
|
|
var reader = new NetCDFReader(data);
|
|
expect(reader.getAttribute('operator_name')).toBe('SC');
|
|
});
|